From 93614bc4b971bb59824179057a4bfa7aac383ce3 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Fri, 26 Mar 2010 17:29:29 -0700 Subject: [PATCH] Add hack ir_call::callee_name to get the name of the called function --- ir.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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) -- 2.30.2