/* See block.h. */
struct dynamic_prop *
-block_static_link (const struct block *block)
+block::static_link () const
{
- struct objfile *objfile = block->objfile ();
+ struct objfile *objfile = this->objfile ();
/* Only objfile-owned blocks that materialize top function scopes can have
static links. */
- if (objfile == NULL || block->function () == NULL)
+ if (objfile == NULL || function () == NULL)
return NULL;
- return (struct dynamic_prop *) objfile_lookup_static_link (objfile, block);
+ return (struct dynamic_prop *) objfile_lookup_static_link (objfile, this);
}
/* Return the compunit of the global block. */
void set_compunit_symtab (struct compunit_symtab *);
+ /* Return a property to evaluate the static link associated to this
+ block.
+
+ In the context of nested functions (available in Pascal, Ada and
+ GNU C, for instance), a static link (as in DWARF's
+ DW_AT_static_link attribute) for a function is a way to get the
+ frame corresponding to the enclosing function.
+
+ Note that only objfile-owned and function-level blocks can have a
+ static link. Return NULL if there is no such property. */
+
+ struct dynamic_prop *static_link () const;
+
/* Addresses in the executable code that are in this block. */
CORE_ADDR m_start;
extern struct block *allocate_global_block (struct obstack *obstack);
-/* Return a property to evaluate the static link associated to BLOCK.
-
- In the context of nested functions (available in Pascal, Ada and GNU C, for
- instance), a static link (as in DWARF's DW_AT_static_link attribute) for a
- function is a way to get the frame corresponding to the enclosing function.
-
- Note that only objfile-owned and function-level blocks can have a static
- link. Return NULL if there is no such property. */
-
-extern struct dynamic_prop *block_static_link (const struct block *block);
-
/* A block iterator. This structure should be treated as though it
were opaque; it is only defined here because we want to support
stack allocation of iterators. */