diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2010-03-31 16:44:12 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-03-31 16:44:12 -0700 |
commit | 0f0ea5826454cf25d6e76ac848a317e673ff1032 (patch) | |
tree | 20cd9a759a11501c1e2a0833debdf025410ddeac /ir.h | |
parent | a4775823b09f0ff77a46e8f35fba32234791a64c (diff) |
Add ir_function_signature::function_name
Diffstat (limited to 'ir.h')
-rw-r--r-- | ir.h | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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: |