@@ -117,20 +117,6 @@ bool casting_replace_symbolt::replace_symbol_expr(symbol_exprt &s) const
117
117
return false ;
118
118
}
119
119
120
- std::string linkingt::expr_to_string (
121
- const irep_idt &identifier,
122
- const exprt &expr) const
123
- {
124
- return from_expr (ns, identifier, expr);
125
- }
126
-
127
- std::string linkingt::type_to_string (
128
- const irep_idt &identifier,
129
- const typet &type) const
130
- {
131
- return from_type (ns, identifier, type);
132
- }
133
-
134
120
static const typet &follow_tags_symbols (
135
121
const namespacet &ns,
136
122
const typet &type)
@@ -171,7 +157,7 @@ std::string linkingt::type_to_string_verbose(
171
157
{
172
158
const typet &subtype = c.type ();
173
159
result += " " ;
174
- result += type_to_string ( symbol.name , subtype);
160
+ result += from_type (ns, symbol.name , subtype);
175
161
result += ' ' ;
176
162
177
163
if (!c.get_base_name ().empty ())
@@ -194,7 +180,7 @@ std::string linkingt::type_to_string_verbose(
194
180
" *" ;
195
181
}
196
182
197
- return type_to_string ( symbol.name , type);
183
+ return from_type (ns, symbol.name , type);
198
184
}
199
185
200
186
bool linkingt::detailed_conflict_report_rec (
@@ -342,10 +328,10 @@ bool linkingt::detailed_conflict_report_rec(
342
328
{
343
329
msg=" enum value types are different (" ;
344
330
msg +=
345
- type_to_string ( old_symbol.name , to_c_enum_type (t1).underlying_type ()) +
331
+ from_type (ns, old_symbol.name , to_c_enum_type (t1).underlying_type ()) +
346
332
' /' ;
347
333
msg +=
348
- type_to_string ( new_symbol.name , to_c_enum_type (t2).underlying_type ()) +
334
+ from_type (ns, new_symbol.name , to_c_enum_type (t2).underlying_type ()) +
349
335
' )' ;
350
336
conclusive = true ;
351
337
}
@@ -468,7 +454,7 @@ bool linkingt::detailed_conflict_report_rec(
468
454
#endif
469
455
log.error () << ' \n ' ;
470
456
log.error () << " reason for conflict at "
471
- << expr_to_string ( irep_idt (), conflict_path) << " : " << msg
457
+ << from_expr (ns, irep_idt (), conflict_path) << " : " << msg
472
458
<< ' \n ' ;
473
459
474
460
log.error () << ' \n ' ;
@@ -1162,10 +1148,10 @@ void linkingt::duplicate_object_symbol(
1162
1148
<< " variable '" << old_symbol.name << " '\n " ;
1163
1149
log.warning () << " using old value in module " << old_symbol.module
1164
1150
<< " " << old_symbol.value .find_source_location () << ' \n '
1165
- << expr_to_string ( old_symbol.name , tmp_old) << ' \n ' ;
1151
+ << from_expr (ns, old_symbol.name , tmp_old) << ' \n ' ;
1166
1152
log.warning () << " ignoring new value in module " << new_symbol.module
1167
1153
<< " " << new_symbol.value .find_source_location () << ' \n '
1168
- << expr_to_string ( new_symbol.name , tmp_new)
1154
+ << from_expr (ns, new_symbol.name , tmp_new)
1169
1155
<< messaget::eom;
1170
1156
}
1171
1157
}
0 commit comments