mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 20:32:19 +00:00
use ESP directly, not a copy of ESP into some other register for fastcc calls
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25584 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
34a05fbe51
commit
91cacc810b
@ -923,8 +923,7 @@ X86TargetLowering::LowerFastCCCallTo(SDOperand Chain, const Type *RetTy,
|
||||
|
||||
// Arguments go on the stack in reverse order, as specified by the ABI.
|
||||
unsigned ArgOffset = 0;
|
||||
SDOperand StackPtr = DAG.getCopyFromReg(DAG.getEntryNode(),
|
||||
X86::ESP, MVT::i32);
|
||||
SDOperand StackPtr = DAG.getRegister(X86::ESP, MVT::i32);
|
||||
NumIntRegs = 0;
|
||||
std::vector<SDOperand> Stores;
|
||||
std::vector<SDOperand> RegValuesToPass;
|
||||
|
Loading…
Reference in New Issue
Block a user