File tree 3 files changed +2
-14
lines changed
3 files changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -668,7 +668,7 @@ void goto_convertt::convert_decl(
668
668
669
669
const irep_idt &identifier=op0.get (ID_identifier);
670
670
671
- const symbolt &symbol= lookup (identifier);
671
+ const symbolt &symbol = ns. lookup (identifier);
672
672
673
673
if (symbol.is_static_lifetime ||
674
674
symbol.type .id ()==ID_code)
@@ -2067,17 +2067,6 @@ void goto_convertt::new_name(symbolt &symbol)
2067
2067
symbol_table.add (symbol);
2068
2068
}
2069
2069
2070
- const symbolt &goto_convertt::lookup (const irep_idt &identifier)
2071
- {
2072
- const symbolt *symbol;
2073
- if (ns.lookup (identifier, symbol))
2074
- {
2075
- error () << " failed to find symbol " << identifier << eom;
2076
- throw 0 ;
2077
- }
2078
- return *symbol;
2079
- }
2080
-
2081
2070
void goto_convert (
2082
2071
const codet &code,
2083
2072
symbol_table_baset &symbol_table,
Original file line number Diff line number Diff line change @@ -57,7 +57,6 @@ class goto_convertt:public messaget
57
57
// tools for symbols
58
58
//
59
59
void new_name (symbolt &symbol);
60
- const symbolt &lookup (const irep_idt &identifier);
61
60
62
61
symbolt &new_tmp_symbol (
63
62
const typet &type,
Original file line number Diff line number Diff line change @@ -377,7 +377,7 @@ void goto_convertt::remove_function_call(
377
377
if (expr.op0 ().id ()==ID_symbol)
378
378
{
379
379
const irep_idt &identifier=expr.op0 ().get (ID_identifier);
380
- const symbolt &symbol= lookup (identifier);
380
+ const symbolt &symbol = ns. lookup (identifier);
381
381
382
382
std::string new_base_name=id2string (new_symbol.base_name );
383
383
You can’t perform that action at this time.
0 commit comments