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:
Lancelot Six
2023-09-14 11:13:24 +00:00
parent 1367eeec2c
commit 6b62451ad0
26 changed files with 34 additions and 47 deletions

View File

@@ -675,7 +675,7 @@ mangled_name_to_comp (const char *mangled_name, int options,
options, memory);
if (ret)
{
auto info = gdb::make_unique<demangle_parse_info> ();
auto info = std::make_unique<demangle_parse_info> ();
info->tree = ret;
*demangled_p = NULL;
return info;