diff options
author | Lancelot Six <lancelot.six@amd.com> | 2023-09-14 11:13:24 +0000 |
---|---|---|
committer | Lancelot Six <lancelot.six@amd.com> | 2023-11-21 11:52:35 +0000 |
commit | 6b62451ad08056f0ba02e192ec34ef67c4294ef4 (patch) | |
tree | 761f6e5a19e9e16d87ec955929aecd025166e335 /gdb/solib-rocm.c | |
parent | 1367eeec2cbd1bb14b89030e199d06fc676ffc49 (diff) | |
download | gdb-6b62451ad08056f0ba02e192ec34ef67c4294ef4.zip gdb-6b62451ad08056f0ba02e192ec34ef67c4294ef4.tar.gz gdb-6b62451ad08056f0ba02e192ec34ef67c4294ef4.tar.bz2 |
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
Diffstat (limited to 'gdb/solib-rocm.c')
-rw-r--r-- | gdb/solib-rocm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/solib-rocm.c b/gdb/solib-rocm.c index 3a971b3..cf56a81 100644 --- a/gdb/solib-rocm.c +++ b/gdb/solib-rocm.c @@ -212,7 +212,7 @@ so_list_from_rocm_sos (const std::vector<rocm_so> &sos) for (const rocm_so &so : sos) { struct shobj *newobj = new struct shobj; - newobj->lm_info = gdb::make_unique<lm_info_svr4> (*so.lm_info); + newobj->lm_info = std::make_unique<lm_info_svr4> (*so.lm_info); newobj->so_name = so.name; newobj->so_original_name = so.unique_name; @@ -725,7 +725,7 @@ rocm_update_solib_list () gdb::unique_xmalloc_ptr<char> uri_bytes_holder (uri_bytes); - lm_info_svr4_up li = gdb::make_unique<lm_info_svr4> (); + lm_info_svr4_up li = std::make_unique<lm_info_svr4> (); li->l_addr = l_addr; /* Generate a unique name so that code objects with the same URI but |