Add hack ir_call::callee_name to get the name of the called function

This commit is contained in:
Ian Romanick 2010-03-26 17:29:29 -07:00
parent 9f93d24050
commit 93614bc4b9
1 changed files with 9 additions and 0 deletions

9
ir.h
View File

@ -327,6 +327,15 @@ public:
return actual_parameters.iterator();
}
/**
* Get the name of the function being called.
*/
const char *callee_name() const
{
/* FINISHME: This only works for functions that have definitions. */
return callee->definition->label;
}
private:
ir_call()
: ir_rvalue(), callee(NULL)