summaryrefslogtreecommitdiff
path: root/ir.h
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-03-31 16:44:12 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-03-31 16:44:12 -0700
commit0f0ea5826454cf25d6e76ac848a317e673ff1032 (patch)
tree20cd9a759a11501c1e2a0833debdf025410ddeac /ir.h
parenta4775823b09f0ff77a46e8f35fba32234791a64c (diff)
Add ir_function_signature::function_name
Diffstat (limited to 'ir.h')
-rw-r--r--ir.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/ir.h b/ir.h
index 261d192402..c3c5369bfc 100644
--- a/ir.h
+++ b/ir.h
@@ -145,6 +145,11 @@ public:
}
/**
+ * Get the name of the function for which this is a signature
+ */
+ const char *function_name() const;
+
+ /**
* Function return type.
*
* \note This discards the optional precision qualifier.
@@ -211,6 +216,11 @@ private:
*/
struct exec_list signatures;
};
+
+inline const char *ir_function_signature::function_name() const
+{
+ return function->name;
+}
/*@}*/
@@ -379,8 +389,7 @@ public:
*/
const char *callee_name() const
{
- /* FINISHME: This only works for functions that have definitions. */
- return callee->definition->label;
+ return callee->function_name();
}
private: