mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
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:
@@ -44,6 +44,7 @@
|
||||
#include "run-on-main-thread.h"
|
||||
#include "typeprint.h"
|
||||
#include "inferior.h"
|
||||
#include <memory>
|
||||
|
||||
#define d_left(dc) (dc)->u.s_binary.left
|
||||
#define d_right(dc) (dc)->u.s_binary.right
|
||||
@@ -675,7 +676,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;
|
||||
|
||||
Reference in New Issue
Block a user