gdb: remove SYMTAB_COMPUNIT macro, add getter/setter
[binutils-gdb.git] / gdb / macroscope.c
index c581c426eda094a59625531f11c2eed519166cc9..93f561acccd8b7a5e97afc3b555b44f93edbb03b 100644 (file)
@@ -43,7 +43,8 @@ sal_macro_scope (struct symtab_and_line sal)
 
   if (sal.symtab == NULL)
     return NULL;
-  cust = SYMTAB_COMPUNIT (sal.symtab);
+
+  cust = sal.symtab->compunit ();
   if (cust->macro_table () == NULL)
     return NULL;