File tree 1 file changed +5
-8
lines changed 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 17
17
#include < memory> // unique_ptr
18
18
19
19
#include " message.h"
20
+ #include " symbol_table.h"
20
21
21
- class symbol_tablet ;
22
- class symbol_table_baset ;
23
22
class language_filet ;
24
23
class languaget ;
25
24
@@ -92,19 +91,17 @@ class language_filest:public messaget
92
91
93
92
bool interfaces (symbol_tablet &symbol_table);
94
93
95
- bool has_lazy_method (const irep_idt &id)
96
- {
97
- return lazy_method_map.count (id)!=0 ;
98
- }
99
-
100
94
// The method must have been added to the symbol table and registered
101
95
// in lazy_method_map (currently always in language_filest::typecheck)
102
96
// for this to be legal.
103
97
void convert_lazy_method (
104
98
const irep_idt &id,
105
99
symbol_tablet &symbol_table)
106
100
{
107
- return lazy_method_map.at (id)->convert_lazy_method (id, symbol_table);
101
+ PRECONDITION (symbol_table.has_symbol (id));
102
+ lazy_method_mapt::iterator it=lazy_method_map.find (id);
103
+ if (it!=lazy_method_map.end ())
104
+ it->second ->convert_lazy_method (id, symbol_table);
108
105
}
109
106
110
107
void clear ()
You can’t perform that action at this time.
0 commit comments