mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-06 09:44:39 +00:00
Set the correct stack pointer register that should be saved or restored.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147012 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
06d738c76a
commit
056a1bc40f
@ -231,7 +231,7 @@ MipsTargetLowering(MipsTargetMachine &TM)
|
||||
|
||||
setMinFunctionAlignment(2);
|
||||
|
||||
setStackPointerRegisterToSaveRestore(Mips::SP);
|
||||
setStackPointerRegisterToSaveRestore(HasMips64 ? Mips::SP_64 : Mips::SP);
|
||||
computeRegisterProperties();
|
||||
|
||||
setExceptionPointerRegister(Mips::A0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user