diff options
author | Tom Tromey <tom@tromey.com> | 2022-10-26 18:26:38 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-10-28 14:19:22 -0600 |
commit | 425d5e76e04d684789452b35363be7302aa0c90b (patch) | |
tree | 3e73e34aae22cff2adb55048ebfd2428563cd6e0 /gdb/symtab.c | |
parent | 6b84c098e533f87d7973fd6fe8a39ee97255ebdb (diff) | |
download | gdb-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.c')
-rw-r--r-- | gdb/symtab.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index a004cc0..ff8d24a 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -405,12 +405,12 @@ compunit_symtab::primary_filetab () const /* See symtab.h. */ enum language -compunit_language (const struct compunit_symtab *cust) +compunit_symtab::language () const { - struct symtab *symtab = cust->primary_filetab (); + struct symtab *symtab = primary_filetab (); -/* The language of the compunit symtab is the language of its primary - source file. */ + /* The language of the compunit symtab is the language of its + primary source file. */ return symtab->language (); } |