Skip to content

Commit f0f50e3

Browse files
committed
Journalling symbol table: enable nesting
Previously only one layer of journal was possible (i.e. a journalling proxy atop a regular symbol table); now we can layer them as deeply as we please. This will be useful so that different layers of the program loader can keep records delimited at different points.
1 parent 58d5980 commit f0f50e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util/journalling_symbol_table.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class journalling_symbol_tablet : public symbol_table_baset
3838
typedef std::unordered_set<irep_idt, irep_id_hash> changesett;
3939

4040
private:
41-
symbol_tablet &base_symbol_table;
41+
symbol_table_baset &base_symbol_table;
4242
// Symbols originally in the table will never be marked inserted
4343
changesett inserted;
4444
// get_writeable marks an existing symbol updated
@@ -74,7 +74,7 @@ class journalling_symbol_tablet : public symbol_table_baset
7474

7575
virtual const symbol_tablet &get_symbol_table() const override
7676
{
77-
return base_symbol_table;
77+
return base_symbol_table.get_symbol_table();
7878
}
7979

8080
static journalling_symbol_tablet wrap(symbol_tablet &base_symbol_table)

0 commit comments

Comments
 (0)