mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
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:
@@ -2126,7 +2126,7 @@ dwarf2_build_frame_info (struct objfile *objfile)
|
||||
struct gdbarch *gdbarch = objfile->arch ();
|
||||
|
||||
/* Build a minimal decoding of the DWARF2 compilation unit. */
|
||||
auto unit = gdb::make_unique<comp_unit> (objfile);
|
||||
auto unit = std::make_unique<comp_unit> (objfile);
|
||||
|
||||
if (objfile->separate_debug_objfile_backlink == NULL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user