[llvm] r207282 - R600: Fix function name printing in LowerCall
Matt Arsenault
Matthew.Arsenault at amd.com
Fri Apr 25 15:22:01 PDT 2014
Author: arsenm
Date: Fri Apr 25 17:22:01 2014
New Revision: 207282
URL: http://llvm.org/viewvc/llvm-project?rev=207282&view=rev
Log:
R600: Fix function name printing in LowerCall
v2: Check both ExternalSymbol and GlobalAddress
Patch by: Jan Vesely <jan.vesely at rutgers.edu>
Modified:
llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp
Modified: llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp?rev=207282&r1=207281&r2=207282&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp Fri Apr 25 17:22:01 2014
@@ -362,7 +362,9 @@ SDValue AMDGPUTargetLowering::LowerCall(
StringRef FuncName("<unknown>");
- if (const GlobalAddressSDNode *G = dyn_cast<GlobalAddressSDNode>(Callee))
+ if (const ExternalSymbolSDNode *G = dyn_cast<ExternalSymbolSDNode>(Callee))
+ FuncName = G->getSymbol();
+ else if (const GlobalAddressSDNode *G = dyn_cast<GlobalAddressSDNode>(Callee))
FuncName = G->getGlobal()->getName();
DiagnosticInfoUnsupported NoCalls(Fn, "call to function " + FuncName);
More information about the llvm-commits
mailing list