diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2021-11-20 21:32:41 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2022-02-06 16:03:46 -0500 |
commit | 012cfab919e7da355b2ac7f86674211cbce26041 (patch) | |
tree | da86dca9362d26fd408ce24b08dd8679a6c91769 /gdb/symtab.h | |
parent | 1ee2e9f9304d05f2962bbc4b83096b850fe4e433 (diff) | |
download | gdb-012cfab919e7da355b2ac7f86674211cbce26041.zip gdb-012cfab919e7da355b2ac7f86674211cbce26041.tar.gz gdb-012cfab919e7da355b2ac7f86674211cbce26041.tar.bz2 |
gdb: remove SYMTAB_BLOCKVECTOR macro
Remove the macro, replace with an equivalent method.
Change-Id: Id6fe2a79c04bcd6c69ccaefb7a69bc06a476288c
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r-- | gdb/symtab.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h index 2830969..1935113 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -1403,6 +1403,8 @@ struct symtab m_language = language; } + const struct blockvector *blockvector () const; + /* Unordered chain of all filetabs in the compunit, with the exception that the "main" source file is the first entry in the list. */ @@ -1435,8 +1437,6 @@ struct symtab using symtab_range = next_range<symtab>; -#define SYMTAB_BLOCKVECTOR(symtab) \ - (symtab->compunit ()->blockvector ()) #define SYMTAB_OBJFILE(symtab) \ (symtab->compunit ()->objfile ()) #define SYMTAB_PSPACE(symtab) (SYMTAB_OBJFILE (symtab)->pspace) @@ -1683,6 +1683,12 @@ struct compunit_symtab using compunit_symtab_range = next_range<compunit_symtab>; +inline const struct blockvector * +symtab::blockvector () const +{ + return this->compunit ()->blockvector (); +} + /* Return the language of CUST. */ extern enum language compunit_language (const struct compunit_symtab *cust); |