projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f93d24
)
Add hack ir_call::callee_name to get the name of the called function
author
Ian Romanick
<ian.d.romanick@intel.com>
Sat, 27 Mar 2010 00:29:29 +0000
(17:29 -0700)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Sat, 27 Mar 2010 00:29:29 +0000
(17:29 -0700)
ir.h
patch
|
blob
|
history
diff --git
a/ir.h
b/ir.h
index 98455f7c379dd8ad1a0043e053772fb0731d8874..e6cdf29ebd6ef19fb67a4d55a94f7b838cf53aef 100644
(file)
--- a/
ir.h
+++ b/
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)