[PATCH v2 1/1] R600: Fix function name printing in LowerCall
Jan Vesely
jan.vesely at rutgers.edu
Fri Apr 25 14:33:44 PDT 2014
v2: Check both ExternalSymbol and GlobalAddress
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
---
lib/Target/R600/AMDGPUISelLowering.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/Target/R600/AMDGPUISelLowering.cpp b/lib/Target/R600/AMDGPUISelLowering.cpp
index d004de6..dee302b 100644
--- a/lib/Target/R600/AMDGPUISelLowering.cpp
+++ b/lib/Target/R600/AMDGPUISelLowering.cpp
@@ -365,6 +365,8 @@ SDValue AMDGPUTargetLowering::LowerCall(CallLoweringInfo &CLI,
StringRef FuncName("<unknown>");
+ if (const ExternalSymbolSDNode *G = dyn_cast<ExternalSymbolSDNode>(Callee))
+ FuncName = G->getSymbol();
if (const GlobalAddressSDNode *G = dyn_cast<GlobalAddressSDNode>(Callee))
FuncName = G->getGlobal()->getName();
--
1.9.0
More information about the llvm-commits
mailing list