Switch to using getCALLSEQ_START instead of using our own creation calls
authorChris Lattner <sabre@nondot.org>
Mon, 13 Feb 2006 08:55:29 +0000 (08:55 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 13 Feb 2006 08:55:29 +0000 (08:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26142 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCISelLowering.cpp

index 8e454105a0f832ed5f33309785339b1cc8763422..46400378a267cea48236953d06c7e3170a21aec1 100644 (file)
@@ -730,8 +730,8 @@ PPCTargetLowering::LowerCallTo(SDOperand Chain,
   unsigned NumBytes = 24;
   
   if (Args.empty()) {
-    Chain = DAG.getNode(ISD::CALLSEQ_START, MVT::Other, Chain,
-                        DAG.getConstant(NumBytes, getPointerTy()));
+    Chain = DAG.getCALLSEQ_START(Chain,
+                                 DAG.getConstant(NumBytes, getPointerTy()));
   } else {
     for (unsigned i = 0, e = Args.size(); i != e; ++i) {
       switch (getValueType(Args[i].second)) {
@@ -757,8 +757,8 @@ PPCTargetLowering::LowerCallTo(SDOperand Chain,
     
     // Adjust the stack pointer for the new arguments...
     // These operations are automatically eliminated by the prolog/epilog pass
-    Chain = DAG.getNode(ISD::CALLSEQ_START, MVT::Other, Chain,
-                        DAG.getConstant(NumBytes, getPointerTy()));
+    Chain = DAG.getCALLSEQ_START(Chain,
+                                 DAG.getConstant(NumBytes, getPointerTy()));
     
     // Set up a copy of the stack pointer for use loading and storing any
     // arguments that may not fit in the registers available for argument