Convert dprintf to vtable ops
[binutils-gdb.git] / gdb / ada-exp.y
index a2755d7501edebb3d6b42a008e587305704da2b4..8660205809a23a386a8dd39536d10f09a15f53c6 100644 (file)
@@ -1369,8 +1369,7 @@ block_lookup (const struct block *context, const char *raw_name)
     symtab = NULL;
 
   if (symtab != NULL)
-    result = BLOCKVECTOR_BLOCK (symtab->compunit ()->blockvector (),
-                               STATIC_BLOCK);
+    result = symtab->compunit ()->blockvector ()->static_block ();
   else if (syms.empty () || syms[0].symbol->aclass () != LOC_BLOCK)
     {
       if (context == NULL)
@@ -1382,7 +1381,7 @@ block_lookup (const struct block *context, const char *raw_name)
     {
       if (syms.size () > 1)
        warning (_("Function name \"%s\" ambiguous here"), raw_name);
-      result = SYMBOL_BLOCK_VALUE (syms[0].symbol);
+      result = syms[0].symbol->value_block ();
     }
 
   return result;