From: Ian Romanick Date: Sat, 27 Mar 2010 00:29:29 +0000 (-0700) Subject: Add hack ir_call::callee_name to get the name of the called function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=93614bc4b971bb59824179057a4bfa7aac383ce3;p=mesa.git Add hack ir_call::callee_name to get the name of the called function --- diff --git a/ir.h b/ir.h index 98455f7c379..e6cdf29ebd6 100644 --- 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)