gdb: Use c++17 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 17 is required, use std::make_unique directly in the
codebase, and remove gdb::make_unique.

Change-Id: I80b615e46e4b7c097f09d78e579a9bdce00254ab
This commit is contained in:
Lancelot Six
2023-09-14 11:13:24 +00:00
parent a6b89d38e2
commit e7b38ccb82
20 changed files with 41 additions and 37 deletions

View File

@@ -30,6 +30,7 @@
#include "gdbsupport/gdb-dlfcn.h"
#include "gdbsupport/preprocessor.h"
#include "gdbarch.h"
#include <memory>
/* See compile-internal.h. */
@@ -118,7 +119,7 @@ get_compile_context (const char *fe_libcc, const char *fe_context,
error (_("The loaded version of GCC does not support the required version "
"of the API."));
return gdb::make_unique<INSTTYPE> (context);
return std::make_unique<INSTTYPE> (context);
}
/* A C-language implementation of get_compile_context. */