Skip to content

Commit 22dc0f5

Browse files
smowtonthomasspriggs
authored andcommitted
Make symbol table refs const
These never needed to be mutable. Making them const means that they can be used from contexts where the symbol table is const.
1 parent 20164f5 commit 22dc0f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jbmc/src/java_bytecode/ci_lazy_methods_needed.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class ci_lazy_methods_neededt
2727
ci_lazy_methods_neededt(
2828
std::unordered_set<irep_idt> &_callable_methods,
2929
std::unordered_set<irep_idt> &_instantiated_classes,
30-
symbol_tablet &_symbol_table,
30+
const symbol_tablet &_symbol_table,
3131
const select_pointer_typet &pointer_type_selector)
3232
: callable_methods(_callable_methods),
3333
instantiated_classes(_instantiated_classes),
@@ -52,7 +52,7 @@ class ci_lazy_methods_neededt
5252
// found so far, so we can use a membership test to avoid
5353
// repeatedly exploring a class hierarchy.
5454
std::unordered_set<irep_idt> &instantiated_classes;
55-
symbol_tablet &symbol_table;
55+
const symbol_tablet &symbol_table;
5656

5757
const select_pointer_typet &pointer_type_selector;
5858

0 commit comments

Comments
 (0)