[binutils-gdb] Use std::unique_ptr in dwarf2_read_debug_names

sergiodj+buildbot@sergiodj.net sergiodj+buildbot@sergiodj.net
Mon May 21 16:43:00 GMT 2018


*** TEST RESULTS FOR COMMIT 22ca247e9e29c11ccfc99b5d187c7dc925608b78 ***

Author: Tom Tromey <tom@tromey.com>
Branch: master
Commit: 22ca247e9e29c11ccfc99b5d187c7dc925608b78

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.



More information about the Gdb-testers mailing list