diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-19 17:50:30 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-19 12:51:06 -0700 |
commit | 7bf30a4447713192eb49be43d7f66630d570652b (patch) | |
tree | 0aed300f918b6a555dfaa77b67bb9b4a5f52c0e1 /gdb/block.c | |
parent | cade9c8a459e4fd2f8a781eed21991e2487f90ee (diff) | |
download | gdb-7bf30a4447713192eb49be43d7f66630d570652b.zip gdb-7bf30a4447713192eb49be43d7f66630d570652b.tar.gz gdb-7bf30a4447713192eb49be43d7f66630d570652b.tar.bz2 |
Convert block_static_link to method
This converts block_static_link to be a method. This was mostly
written by script.
Diffstat (limited to 'gdb/block.c')
-rw-r--r-- | gdb/block.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/block.c b/gdb/block.c index 3cd90dc..8aa0e67 100644 --- a/gdb/block.c +++ b/gdb/block.c @@ -420,16 +420,16 @@ block::set_compunit_symtab (struct compunit_symtab *cu) /* 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. */ |