]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/cp-support.c
gdb: remove COMPUNIT_BLOCKVECTOR macro, add getter/setter
[thirdparty/binutils-gdb.git] / gdb / cp-support.c
index de83eb5d957021a3c677aced278b1aac83e2fa65..028ff0f475460c900a0b9a99127dafea18993619 100644 (file)
@@ -1464,7 +1464,7 @@ add_symbol_overload_list_qualified (const char *func_name,
       for (compunit_symtab *cust : objfile->compunits ())
        {
          QUIT;
-         b = BLOCKVECTOR_BLOCK (COMPUNIT_BLOCKVECTOR (cust), GLOBAL_BLOCK);
+         b = BLOCKVECTOR_BLOCK (cust->blockvector (), GLOBAL_BLOCK);
          add_symbol_overload_list_block (func_name, b, overload_list);
        }
     }
@@ -1474,7 +1474,7 @@ add_symbol_overload_list_qualified (const char *func_name,
       for (compunit_symtab *cust : objfile->compunits ())
        {
          QUIT;
-         b = BLOCKVECTOR_BLOCK (COMPUNIT_BLOCKVECTOR (cust), STATIC_BLOCK);
+         b = BLOCKVECTOR_BLOCK (cust->blockvector (), STATIC_BLOCK);
          /* Don't do this block twice.  */
          if (b == surrounding_static_block)
            continue;