aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-02-08 22:24:40 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-02-08 22:24:40 +0000
commit47d4201348ccf18c3e4c1efe327761f112f1d5cc (patch)
treebac920ca9033a4ab4390adb30a024119f58c34e4
parent7370ede2cdc273183155a0b0e58cef71423b2769 (diff)
downloadllvm-47d4201348ccf18c3e4c1efe327761f112f1d5cc.zip
llvm-47d4201348ccf18c3e4c1efe327761f112f1d5cc.tar.gz
llvm-47d4201348ccf18c3e4c1efe327761f112f1d5cc.tar.bz2
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
-rw-r--r--llvm/lib/Target/R600/AMDGPUISelLowering.h5
1 files changed, 5 insertions, 0 deletions
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<ISD::OutputArg> &Outs,
const SmallVectorImpl<SDValue> &OutVals,
DebugLoc DL, SelectionDAG &DAG) const;
+ virtual SDValue LowerCall(CallLoweringInfo &CLI,
+ SmallVectorImpl<SDValue> &InVals) const {
+ CLI.Callee.dump();
+ llvm_unreachable("Undefined function");
+ }
virtual SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const;
SDValue LowerIntrinsicIABS(SDValue Op, SelectionDAG &DAG) const;