R600: Dump the function name when TargetLowering::LowerCall() fails
authorTom Stellard <thomas.stellard@amd.com>
Fri, 8 Feb 2013 22:24:40 +0000 (22:24 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 8 Feb 2013 22:24:40 +0000 (22:24 +0000)
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

lib/Target/R600/AMDGPUISelLowering.h

index 927ed09b4637dbb6ac38e4004610bc47f8f8d8e5..4b844a3ff3abfb855e6dfde52b43131b228afba1 100644 (file)
@@ -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;