Add hack ir_call::callee_name to get the name of the called function
This commit is contained in:
parent
9f93d24050
commit
93614bc4b9
9
ir.h
9
ir.h
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue