Dummy code to silence warning from 4189266
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Mon, 26 Aug 2013 20:11:46 +0000 (20:11 +0000)
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>
Mon, 26 Aug 2013 20:11:46 +0000 (20:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189272 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCISelLowering.h

index bc55d383f1e91da66709e7a3e837c54575643644..28b9ba9284430e87abdfda02a33754a55bd09b84 100644 (file)
@@ -1810,6 +1810,15 @@ SDValue PPCTargetLowering::LowerVASTART(SDValue Op, SelectionDAG &DAG,
 
 #include "PPCGenCallingConv.inc"
 
+// Function whose sole purpose is to kill compiler warnings 
+// stemming from unused functions included from PPCGenCallingConv.inc.
+CCAssignFn *PPCTargetLowering::useFastISelCCs(unsigned Flag) const {
+  if (Flag == 1)
+    return RetCC_PPC64_ELF_FIS; /* CC_PPC64_ELF_FIS in future patch. */
+  else
+    return RetCC_PPC64_ELF_FIS;
+}
+
 bool llvm::CC_PPC32_SVR4_Custom_Dummy(unsigned &ValNo, MVT &ValVT, MVT &LocVT,
                                       CCValAssign::LocInfo &LocInfo,
                                       ISD::ArgFlagsTy &ArgFlags,
index aa5e8219290019fdedd5ccdfafbe1b44debfea75..df3af35761ee6886976d58c5f8812c314f7f3aaa 100644 (file)
@@ -627,6 +627,8 @@ namespace llvm {
 
     SDValue DAGCombineFastRecip(SDValue Op, DAGCombinerInfo &DCI) const;
     SDValue DAGCombineFastRecipFSQRT(SDValue Op, DAGCombinerInfo &DCI) const;
+
+    CCAssignFn *useFastISelCCs(unsigned Flag) const;
   };
 
   namespace PPC {