@@ -40,15 +40,13 @@ bool casting_replace_symbolt::replace_symbol_expr(symbol_exprt &s) const
40
40
}
41
41
42
42
std::string linkingt::expr_to_string (
43
- const namespacet &ns,
44
43
const irep_idt &identifier,
45
44
const exprt &expr) const
46
45
{
47
46
return from_expr (ns, identifier, expr);
48
47
}
49
48
50
49
std::string linkingt::type_to_string (
51
- const namespacet &ns,
52
50
const irep_idt &identifier,
53
51
const typet &type) const
54
52
{
@@ -72,7 +70,6 @@ static const typet &follow_tags_symbols(
72
70
}
73
71
74
72
std::string linkingt::type_to_string_verbose (
75
- const namespacet &ns,
76
73
const symbolt &symbol,
77
74
const typet &type) const
78
75
{
@@ -91,7 +88,7 @@ std::string linkingt::type_to_string_verbose(
91
88
{
92
89
const typet &subtype = c.type ();
93
90
result+=" " ;
94
- result+=type_to_string (ns, symbol.name , subtype);
91
+ result+=type_to_string (symbol.name , subtype);
95
92
result+=' ' ;
96
93
97
94
if (!c.get_base_name ().empty ())
@@ -108,15 +105,15 @@ std::string linkingt::type_to_string_verbose(
108
105
}
109
106
else if (followed.id ()==ID_pointer)
110
107
{
111
- return type_to_string_verbose (ns, symbol, followed.subtype ())+" *" ;
108
+ return type_to_string_verbose (symbol, followed.subtype ())+" *" ;
112
109
}
113
110
else if (followed.id ()==ID_incomplete_struct ||
114
111
followed.id ()==ID_incomplete_union)
115
112
{
116
- return type_to_string (ns, symbol.name , type)+" (incomplete)" ;
113
+ return type_to_string (symbol.name , type)+" (incomplete)" ;
117
114
}
118
115
119
- return type_to_string (ns, symbol.name , type);
116
+ return type_to_string (symbol.name , type);
120
117
}
121
118
122
119
void linkingt::detailed_conflict_report_rec (
@@ -256,8 +253,8 @@ void linkingt::detailed_conflict_report_rec(
256
253
if (t1.subtype ()!=t2.subtype ())
257
254
{
258
255
msg=" enum value types are different (" ;
259
- msg+=type_to_string (ns, old_symbol.name , t1.subtype ())+' /' ;
260
- msg+=type_to_string (ns, new_symbol.name , t2.subtype ())+' )' ;
256
+ msg+=type_to_string (old_symbol.name , t1.subtype ())+' /' ;
257
+ msg+=type_to_string (new_symbol.name , t2.subtype ())+' )' ;
261
258
}
262
259
else if (members1.size ()!=members2.size ())
263
260
{
@@ -360,12 +357,12 @@ void linkingt::detailed_conflict_report_rec(
360
357
{
361
358
error () << ' \n ' ;
362
359
error () << " reason for conflict at "
363
- << expr_to_string (ns, " " , conflict_path)
360
+ << expr_to_string (" " , conflict_path)
364
361
<< " : " << msg << ' \n ' ;
365
362
366
363
error () << ' \n ' ;
367
- error () << type_to_string_verbose (ns, old_symbol, t1) << ' \n ' ;
368
- error () << type_to_string_verbose (ns, new_symbol, t2) << ' \n ' ;
364
+ error () << type_to_string_verbose (old_symbol, t1) << ' \n ' ;
365
+ error () << type_to_string_verbose (new_symbol, t2) << ' \n ' ;
369
366
}
370
367
371
368
#ifdef DEBUG
@@ -385,10 +382,10 @@ void linkingt::link_error(
385
382
<< " '" << ' \n ' ;
386
383
error () << " old definition in module `" << old_symbol.module
387
384
<< " ' " << old_symbol.location << ' \n '
388
- << type_to_string_verbose (ns, old_symbol) << ' \n ' ;
385
+ << type_to_string_verbose (old_symbol) << ' \n ' ;
389
386
error () << " new definition in module `" << new_symbol.module
390
387
<< " ' " << new_symbol.location << ' \n '
391
- << type_to_string_verbose (ns, new_symbol) << eom;
388
+ << type_to_string_verbose (new_symbol) << eom;
392
389
}
393
390
394
391
void linkingt::link_warning (
@@ -403,10 +400,10 @@ void linkingt::link_warning(
403
400
<< " \" " << ' \n ' ;
404
401
warning () << " old definition in module " << old_symbol.module
405
402
<< " " << old_symbol.location << ' \n '
406
- << type_to_string_verbose (ns, old_symbol) << ' \n ' ;
403
+ << type_to_string_verbose (old_symbol) << ' \n ' ;
407
404
warning () << " new definition in module " << new_symbol.module
408
405
<< " " << new_symbol.location << ' \n '
409
- << type_to_string_verbose (ns, new_symbol) << eom;
406
+ << type_to_string_verbose (new_symbol) << eom;
410
407
}
411
408
412
409
irep_idt linkingt::rename (const irep_idt id)
@@ -1043,12 +1040,12 @@ void linkingt::duplicate_object_symbol(
1043
1040
warning () << " using old value in module "
1044
1041
<< old_symbol.module << " "
1045
1042
<< old_symbol.value .find_source_location () << ' \n '
1046
- << expr_to_string (ns, old_symbol.name , tmp_old)
1043
+ << expr_to_string (old_symbol.name , tmp_old)
1047
1044
<< ' \n ' ;
1048
1045
warning () << " ignoring new value in module "
1049
1046
<< new_symbol.module << " "
1050
1047
<< new_symbol.value .find_source_location () << ' \n '
1051
- << expr_to_string (ns, new_symbol.name , tmp_new)
1048
+ << expr_to_string (new_symbol.name , tmp_new)
1052
1049
<< eom;
1053
1050
}
1054
1051
}
0 commit comments