diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2006-08-09 17:37:45 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2006-08-09 17:37:45 +0000 |
commit | a1ab92d8b7c2d4ca0ab35b372c8eb7b66a5cbf64 (patch) | |
tree | 4178f55babf0319b5b30c1ef39af50ef02dd2a86 /lib | |
parent | 049ccbe9418f04f019691b5ab03ced2872152853 (diff) | |
download | external_llvm-a1ab92d8b7c2d4ca0ab35b372c8eb7b66a5cbf64.zip external_llvm-a1ab92d8b7c2d4ca0ab35b372c8eb7b66a5cbf64.tar.gz external_llvm-a1ab92d8b7c2d4ca0ab35b372c8eb7b66a5cbf64.tar.bz2 |
correctly set LocalAreaOffset of TargetFrameInfo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29589 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/ARM/ARMRegisterInfo.cpp | 5 | ||||
-rw-r--r-- | lib/Target/ARM/ARMTargetMachine.cpp | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/lib/Target/ARM/ARMRegisterInfo.cpp b/lib/Target/ARM/ARMRegisterInfo.cpp index ba0cd91..5471ccd 100644 --- a/lib/Target/ARM/ARMRegisterInfo.cpp +++ b/lib/Target/ARM/ARMRegisterInfo.cpp @@ -93,11 +93,6 @@ ARMRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II) const { unsigned StackSize = MF.getFrameInfo()->getStackSize(); - //<hack> - if (Offset < 0) - Offset -= 4; - //</hack> - Offset += StackSize; assert (Offset >= 0); diff --git a/lib/Target/ARM/ARMTargetMachine.cpp b/lib/Target/ARM/ARMTargetMachine.cpp index f4824da..8c1e954 100644 --- a/lib/Target/ARM/ARMTargetMachine.cpp +++ b/lib/Target/ARM/ARMTargetMachine.cpp @@ -33,7 +33,7 @@ namespace { /// ARMTargetMachine::ARMTargetMachine(const Module &M, const std::string &FS) : TargetMachine("ARM"), DataLayout("E-p:32:32"), - FrameInfo(TargetFrameInfo::StackGrowsDown, 8, 0) { + FrameInfo(TargetFrameInfo::StackGrowsDown, 8, -4) { } unsigned ARMTargetMachine::getModuleMatchQuality(const Module &M) { |