diff options
author | Keith Seitz <keiths@redhat.com> | 2018-08-29 15:12:23 -0700 |
---|---|---|
committer | Keith Seitz <keiths@redhat.com> | 2018-08-29 15:12:23 -0700 |
commit | 2a90824133f9d46970c9c52b68ef2ccbeb6389ac (patch) | |
tree | 58947732e65b0ad7dc173e6a480c73b523fe249c /gdb/compile/compile-cplus-symbols.c | |
parent | f6c4e3e8a3af94fbecce2a38d3fccc0980616c6d (diff) | |
download | gdb-2a90824133f9d46970c9c52b68ef2ccbeb6389ac.zip gdb-2a90824133f9d46970c9c52b68ef2ccbeb6389ac.tar.gz gdb-2a90824133f9d46970c9c52b68ef2ccbeb6389ac.tar.bz2 |
Change `file_symtabs' to std::vector
This patch changes the `file_symtabs' members in linespec.c structures
from a VEC to a std::vector (or unique_ptr thereof), eliminating a cleanup
in the process.
gdb/ChangeLog:
* linespec.c (symtab_vector_up): Define.
(struct linespec) <file_symtabs>: Change type to std::vector *.
Update all uses.
(struct collect_info) <file_symtabs>: Likewise.
(collect_symtabs_from_filename): Return symtab_vector_up.
Update all callers.
(decode_objc): Remove cleanup.
(symtab_collector::symtab_collector): Initialize `m_symtabs'.
(symtab_collector::release_symtabs): Return symtab_vector_up.
Update all callers.
(class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
Update all users.
(collect_symtabs_from_filename, symtabs_from_filename): Return
symtab_vector_up. Update all callers.
Diffstat (limited to 'gdb/compile/compile-cplus-symbols.c')
0 files changed, 0 insertions, 0 deletions