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/dwarf2/read-gdb-index.c | |
parent | 1367eeec2cbd1bb14b89030e199d06fc676ffc49 (diff) | |
download | binutils-6b62451ad08056f0ba02e192ec34ef67c4294ef4.zip binutils-6b62451ad08056f0ba02e192ec34ef67c4294ef4.tar.gz binutils-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/dwarf2/read-gdb-index.c')
-rw-r--r-- | gdb/dwarf2/read-gdb-index.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2/read-gdb-index.c b/gdb/dwarf2/read-gdb-index.c index e789e9c..064a9f1 100644 --- a/gdb/dwarf2/read-gdb-index.c +++ b/gdb/dwarf2/read-gdb-index.c @@ -828,7 +828,7 @@ dwarf2_read_gdb_index if (main_index_contents.empty ()) return 0; - auto map = gdb::make_unique<mapped_gdb_index> (); + auto map = std::make_unique<mapped_gdb_index> (); if (!read_gdb_index_from_buffer (objfile_name (objfile), use_deprecated_index_sections, main_index_contents, map.get (), &cu_list, |