summaryrefslogtreecommitdiffstats
path: root/lib/Target
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
commitd66bd704cc92fed8292e06018e4f26547d1c96d0 (patch)
tree7df648e7ade448b0a82a7b658647ccc85d81d486 /lib/Target
parentf4e471a49ed6d8e957aeb62972b8dae5304b4440 (diff)
downloadexternal_llvm-d66bd704cc92fed8292e06018e4f26547d1c96d0.zip
external_llvm-d66bd704cc92fed8292e06018e4f26547d1c96d0.tar.gz
external_llvm-d66bd704cc92fed8292e06018e4f26547d1c96d0.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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174763 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/R600/AMDGPUISelLowering.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/R600/AMDGPUISelLowering.h b/lib/Target/R600/AMDGPUISelLowering.h
index 927ed09..4b844a3 100644
--- a/lib/Target/R600/AMDGPUISelLowering.h
+++ b/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;