]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Use an enum to represent subclasses of symbol
authorTom Tromey <tom@tromey.com>
Fri, 17 Nov 2017 19:05:58 +0000 (12:05 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 17 Nov 2017 21:34:14 +0000 (14:34 -0700)
commitcf724bc93ee954a6f7aac0557afc41c1316dc80c
tree4fe0e1abc6f5e512121fa9ad6e263b2aff6682bf
parent68e745e38edebd2a12d60ef7b5774066db3f1c40
Use an enum to represent subclasses of symbol

This changes struct symbol to use an enum to encode the concrete
subclass of a particular symbol.  Note that "enum class" doesn't work
properly with bitfields, so a plain enum is used.

2017-11-17  Tom Tromey  <tom@tromey.com>

* symtab.h (enum symbol_subclass_kind): New.
(struct symbol) <is_cplus_template_function, is_rust_vtable>:
Remove.
<subclass>: New member.
(SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
* rust-lang.c (rust_get_trait_object_pointer): Update.
* dwarf2read.c (read_func_scope): Update.
(read_variable): Update.
gdb/ChangeLog
gdb/dwarf2read.c
gdb/rust-lang.c
gdb/symtab.h