From 47d4201348ccf18c3e4c1efe327761f112f1d5cc Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Fri, 8 Feb 2013 22:24:40 +0000 Subject: [PATCH] R600: Dump the function name when TargetLowering::LowerCall() fails Also output a more useful error message. NOTE: This is a candidate for the Mesa stable branch llvm-svn: 174763 --- llvm/lib/Target/R600/AMDGPUISelLowering.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/llvm/lib/Target/R600/AMDGPUISelLowering.h b/llvm/lib/Target/R600/AMDGPUISelLowering.h index 927ed09..4b844a3 100644 --- a/llvm/lib/Target/R600/AMDGPUISelLowering.h +++ b/llvm/lib/Target/R600/AMDGPUISelLowering.h @@ -53,6 +53,11 @@ public: const SmallVectorImpl &Outs, const SmallVectorImpl &OutVals, DebugLoc DL, SelectionDAG &DAG) const; + virtual SDValue LowerCall(CallLoweringInfo &CLI, + SmallVectorImpl &InVals) const { + CLI.Callee.dump(); + llvm_unreachable("Undefined function"); + } virtual SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const; SDValue LowerIntrinsicIABS(SDValue Op, SelectionDAG &DAG) const; -- 2.7.4