aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-10-26 18:26:38 -0600
committerTom Tromey <tom@tromey.com>2022-10-28 14:19:22 -0600
commit425d5e76e04d684789452b35363be7302aa0c90b (patch)
tree3e73e34aae22cff2adb55048ebfd2428563cd6e0 /gdb/symtab.h
parent6b84c098e533f87d7973fd6fe8a39ee97255ebdb (diff)
downloadgdb-425d5e76e04d684789452b35363be7302aa0c90b.zip
gdb-425d5e76e04d684789452b35363be7302aa0c90b.tar.gz
gdb-425d5e76e04d684789452b35363be7302aa0c90b.tar.bz2
Convert compunit_language to a method
This changes compunit_language to be a method on compunit_symtab. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r--gdb/symtab.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index dac3266..4f3e84b 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -1840,6 +1840,9 @@ struct compunit_symtab
/* Find call_site info for PC. */
call_site *find_call_site (CORE_ADDR pc) const;
+ /* Return the language of this compunit_symtab. */
+ enum language language () const;
+
/* Unordered chain of all compunit symtabs of this objfile. */
struct compunit_symtab *next;
@@ -1920,10 +1923,6 @@ struct compunit_symtab
using compunit_symtab_range = next_range<compunit_symtab>;
-/* Return the language of CUST. */
-
-extern enum language compunit_language (const struct compunit_symtab *cust);
-
/* Return true if this symtab is the "main" symtab of its compunit_symtab. */
static inline bool