Use std::unique_ptr in dwarf2_read_debug_names
authorTom Tromey <tom@tromey.com>
Fri, 18 May 2018 20:07:57 +0000 (14:07 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 21 May 2018 15:36:33 +0000 (09:36 -0600)
commit22ca247e9e29c11ccfc99b5d187c7dc925608b78
tree5c699720a30a5bdd3cd4f2a32949771a13d5edb9
parent184cde7552b5434196b8380be23b39ff4a5a17e6
Use std::unique_ptr in dwarf2_read_debug_names

This changes dwarf2_read_debug_names to use std::unique_ptr from the
outset.  This simplifies the code that installs the resulting map into
dwarf2_per_objfile.

Tested by the buildbot.

ChangeLog
2018-05-21  Tom Tromey  <tom@tromey.com>

* dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
(mapped_index_base): Use DISABLE_COPY_AND_ASSIGN.  Default
constructor.
gdb/ChangeLog
gdb/dwarf2read.c