aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Mips/MipsISelLowering.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-10-11 22:08:30 +0000
committerChris Lattner <sabre@nondot.org>2008-10-11 22:08:30 +0000
commitfe5d4021d0884e4cb94a7bb688fa0b02950ee29c (patch)
treea37bbcd7f9c678ffb63af61962f1d0fb13b345a9 /lib/Target/Mips/MipsISelLowering.cpp
parenta1f63bb6de7de331d6672e59caca6db6ea656baa (diff)
downloadexternal_llvm-fe5d4021d0884e4cb94a7bb688fa0b02950ee29c.zip
external_llvm-fe5d4021d0884e4cb94a7bb688fa0b02950ee29c.tar.gz
external_llvm-fe5d4021d0884e4cb94a7bb688fa0b02950ee29c.tar.bz2
Change CALLSEQ_BEGIN and CALLSEQ_END to take TargetConstant's as
parameters instead of raw Constants. This prevents the constants from being selected by the isel pass, fixing PR2735. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57385 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsISelLowering.cpp')
-rw-r--r--lib/Target/Mips/MipsISelLowering.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/Target/Mips/MipsISelLowering.cpp b/lib/Target/Mips/MipsISelLowering.cpp
index 557a105..dd6b432 100644
--- a/lib/Target/Mips/MipsISelLowering.cpp
+++ b/lib/Target/Mips/MipsISelLowering.cpp
@@ -608,8 +608,7 @@ LowerCALL(SDValue Op, SelectionDAG &DAG)
// Get a count of how many bytes are to be pushed on the stack.
unsigned NumBytes = CCInfo.getNextStackOffset();
- Chain = DAG.getCALLSEQ_START(Chain,DAG.getConstant(NumBytes,
- getPointerTy()));
+ Chain = DAG.getCALLSEQ_START(Chain, DAG.getIntPtrConstant(NumBytes, true));
// With EABI is it possible to have 16 args on registers.
SmallVector<std::pair<unsigned, SDValue>, 16> RegsToPass;
@@ -715,10 +714,8 @@ LowerCALL(SDValue Op, SelectionDAG &DAG)
InFlag = Chain.getValue(1);
// Create the CALLSEQ_END node.
- Chain = DAG.getCALLSEQ_END(Chain,
- DAG.getConstant(NumBytes, getPointerTy()),
- DAG.getConstant(0, getPointerTy()),
- InFlag);
+ Chain = DAG.getCALLSEQ_END(Chain, DAG.getIntPtrConstant(NumBytes, true),
+ DAG.getIntPtrConstant(0, true), InFlag);
InFlag = Chain.getValue(1);
// Create a stack location to hold GP when PIC is used. This stack