@@ -117,20 +117,6 @@ bool casting_replace_symbolt::replace_symbol_expr(symbol_exprt &s) const
117117 return false ;
118118}
119119
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-
134120static const typet &follow_tags_symbols (
135121 const namespacet &ns,
136122 const typet &type)
@@ -171,7 +157,7 @@ std::string linkingt::type_to_string_verbose(
171157 {
172158 const typet &subtype = c.type ();
173159 result += " " ;
174- result += type_to_string ( symbol.name , subtype);
160+ result += from_type (ns, symbol.name , subtype);
175161 result += ' ' ;
176162
177163 if (!c.get_base_name ().empty ())
@@ -194,7 +180,7 @@ std::string linkingt::type_to_string_verbose(
194180 " *" ;
195181 }
196182
197- return type_to_string ( symbol.name , type);
183+ return from_type (ns, symbol.name , type);
198184}
199185
200186bool linkingt::detailed_conflict_report_rec (
@@ -342,10 +328,10 @@ bool linkingt::detailed_conflict_report_rec(
342328 {
343329 msg=" enum value types are different (" ;
344330 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 ()) +
346332 ' /' ;
347333 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 ()) +
349335 ' )' ;
350336 conclusive = true ;
351337 }
@@ -468,7 +454,7 @@ bool linkingt::detailed_conflict_report_rec(
468454#endif
469455 log.error () << ' \n ' ;
470456 log.error () << " reason for conflict at "
471- << expr_to_string ( irep_idt (), conflict_path) << " : " << msg
457+ << from_expr (ns, irep_idt (), conflict_path) << " : " << msg
472458 << ' \n ' ;
473459
474460 log.error () << ' \n ' ;
@@ -1162,10 +1148,10 @@ void linkingt::duplicate_object_symbol(
11621148 << " variable '" << old_symbol.name << " '\n " ;
11631149 log.warning () << " using old value in module " << old_symbol.module
11641150 << " " << 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 ' ;
11661152 log.warning () << " ignoring new value in module " << new_symbol.module
11671153 << " " << 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)
11691155 << messaget::eom;
11701156 }
11711157 }
0 commit comments