forked from Imagelibrary/binutils-gdb
gdb: Use C++17's std::make_unique instead of gdb::make_unique
gdb::make_unique is a wrapper around std::make_unique when compiled with C++17. Now that C++17 is required, use std::make_unique directly in the codebase, and remove gdb::make_unique. Change-Id: I80b615e46e4b7c097f09d78e579a9bdce00254ab Approved-By: Tom Tromey <tom@tromey.com> Approved-By: Pedro Alves <pedro@palves.net
This commit is contained in:
@@ -4372,7 +4372,7 @@ allocate_type_unit_groups_table ()
|
||||
static std::unique_ptr<type_unit_group>
|
||||
create_type_unit_group (struct dwarf2_cu *cu, sect_offset line_offset_struct)
|
||||
{
|
||||
auto tu_group = gdb::make_unique<type_unit_group> ();
|
||||
auto tu_group = std::make_unique<type_unit_group> ();
|
||||
|
||||
tu_group->hash.dwo_unit = cu->dwo_unit;
|
||||
tu_group->hash.line_sect_off = line_offset_struct;
|
||||
|
||||
Reference in New Issue
Block a user