Some cleanup removal in dwarf2loc.c
authorTom Tromey <tom@tromey.com>
Sun, 25 Sep 2016 22:17:15 +0000 (16:17 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 21 Oct 2016 20:17:37 +0000 (14:17 -0600)
commit5841433461e2ce9da41292a49af4cc3c6b1e1f2d
tree9fd710147a85310e7ed6e618e0c94c93abafa378
parent67ad9399e2a69757f06886ee61ce7f36d15e768a
Some cleanup removal in dwarf2loc.c

This removes some cleanups and manual allocation handling in
dwarf2loc.c with std::vector.  Note that this patch has a case where
the vector would normally fall into the "use gdb::unique_ptr"
guidelines -- but here because the vector is immediately initialized,
I moved the initialization into the constructor call, for further
code savings.

2016-10-21  Tom Tromey  <tom@tromey.com>

* dwarf2loc.c: Include <vector>.
(read_pieced_value, write_pieced_value)
(dwarf2_compile_expr_to_ax): Use std::vector.
gdb/ChangeLog
gdb/dwarf2loc.c