Without this update, duplicate_function_remover::visit_functioncall()
would treat two different private functions of the same name as one
("Changing B reference to A reference"). This would happen with default
optimizations (without -u). This fix is analogical to
b834d412e356
(mcermak/private branch) which does similar thing for private globals.
functiondecl* d = find_function (e->function, e->args.size (), e->tok);
if (d)
+ {
e->referent = d;
+ e->function = d->name;
+ }
else
{
string sugs = levenshtein_suggest(e->function, collect_functions(), 5); // print 5 funcs