[PATCH v2 1/1] R600: Fix function name printing in LowerCall

Matt Arsenault arsenm2 at gmail.com
Fri Apr 25 15:29:35 PDT 2014


On Apr 25, 2014, at 2:33 PM, Jan Vesely <jan.vesely at rutgers.edu> wrote:

> 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
> 
Committed as r207282 with the minor modification of making it an else if



More information about the llvm-commits mailing list