Skip to content

Commit

Permalink
print inlined functions in verbose mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Trass3r committed Feb 18, 2014
1 parent cfed38e commit d434a80
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/inline.c
Expand Up @@ -1389,7 +1389,11 @@ class InlineScanVisitor : public Visitor
{
Expression *ex = expandInline(fd, parent, eret, NULL, e->arguments, NULL);
if (ex)
{
eresult = ex;
if (global.params.verbose)
fprintf(global.stdmsg, "inlined %s =>\n %s\n", fd->toPrettyChars(), parent->toPrettyChars());
}
}
}
else if (e->e1->op == TOKdotvar)
Expand All @@ -1412,7 +1416,11 @@ class InlineScanVisitor : public Visitor
{
Expression *ex = expandInline(fd, parent, eret, dve->e1, e->arguments, NULL);
if (ex)
{
eresult = ex;
if (global.params.verbose)
fprintf(global.stdmsg, "inlined %s =>\n %s\n", fd->toPrettyChars(), parent->toPrettyChars());
}
}
}
}
Expand Down

0 comments on commit d434a80

Please sign in to comment.