@@ -66,7 +66,6 @@ void goto_inlinet::parameter_assignments(
66
66
decl->code =code_declt (symbol.symbol_expr ());
67
67
decl->code .add_source_location ()=source_location;
68
68
decl->source_location =source_location;
69
- decl->function =adjust_function?target->function :function_name;
70
69
}
71
70
72
71
// this is the actual parameter
@@ -129,8 +128,6 @@ void goto_inlinet::parameter_assignments(
129
128
dest.add_instruction (ASSIGN);
130
129
dest.instructions .back ().source_location =source_location;
131
130
dest.instructions .back ().code .swap (assignment);
132
- dest.instructions .back ().function =
133
- adjust_function?target->function :function_name;
134
131
}
135
132
136
133
if (it1!=arguments.end ())
@@ -174,7 +171,6 @@ void goto_inlinet::parameter_destruction(
174
171
dead->code =code_deadt (symbol.symbol_expr ());
175
172
dead->code .add_source_location ()=source_location;
176
173
dead->source_location =source_location;
177
- dead->function =adjust_function?target->function :function_name;
178
174
}
179
175
}
180
176
}
@@ -281,10 +277,6 @@ void goto_inlinet::insert_function_body(
281
277
" final instruction of a function must be an END_FUNCTION" );
282
278
end.type =LOCATION;
283
279
284
- if (adjust_function)
285
- for (auto &instruction : body.instructions )
286
- instruction.function =target->function ;
287
-
288
280
// make sure the inlined function does not introduce hiding
289
281
if (goto_function.is_hidden ())
290
282
{
0 commit comments