Do not pass section index to end_compunit_symtab

Right now, the section index passed to end_compunit_symtab is always
SECT_OFF_TEXT.  Remove this parameter and simply always use
SECT_OFF_TEXT.
This commit is contained in:
Tom Tromey
2023-01-13 09:08:41 -07:00
parent b8a6e98781
commit 83bad3162d
10 changed files with 32 additions and 46 deletions

View File

@ -327,12 +327,11 @@ struct buildsym_compunit
(CORE_ADDR end_addr, int expandable, int required);
struct compunit_symtab *end_compunit_symtab_from_static_block
(struct block *static_block, int section, int expandable);
(struct block *static_block, int expandable);
struct compunit_symtab *end_compunit_symtab (CORE_ADDR end_addr, int section);
struct compunit_symtab *end_compunit_symtab (CORE_ADDR end_addr);
struct compunit_symtab *end_expandable_symtab (CORE_ADDR end_addr,
int section);
struct compunit_symtab *end_expandable_symtab (CORE_ADDR end_addr);
void augment_type_symtab ();
@ -352,7 +351,7 @@ private:
void watch_main_source_file_lossage ();
struct compunit_symtab *end_compunit_symtab_with_blockvector
(struct block *static_block, int section, int expandable);
(struct block *static_block, int expandable);
/* The objfile we're reading debug info from. */
struct objfile *m_objfile;