Skip to content
Snippets Groups Projects
Commit 1c41fc9b authored by Rafael Espindola's avatar Rafael Espindola
Browse files

correctly set LocalAreaOffset of TargetFrameInfo

llvm-svn: 29589
parent 7dc6761a
No related branches found
No related tags found
No related merge requests found
...@@ -93,11 +93,6 @@ ARMRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II) const { ...@@ -93,11 +93,6 @@ ARMRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II) const {
unsigned StackSize = MF.getFrameInfo()->getStackSize(); unsigned StackSize = MF.getFrameInfo()->getStackSize();
//<hack>
if (Offset < 0)
Offset -= 4;
//</hack>
Offset += StackSize; Offset += StackSize;
assert (Offset >= 0); assert (Offset >= 0);
......
...@@ -33,7 +33,7 @@ namespace { ...@@ -33,7 +33,7 @@ namespace {
/// ///
ARMTargetMachine::ARMTargetMachine(const Module &M, const std::string &FS) ARMTargetMachine::ARMTargetMachine(const Module &M, const std::string &FS)
: TargetMachine("ARM"), DataLayout("E-p:32:32"), : TargetMachine("ARM"), DataLayout("E-p:32:32"),
FrameInfo(TargetFrameInfo::StackGrowsDown, 8, 0) { FrameInfo(TargetFrameInfo::StackGrowsDown, 8, -4) {
} }
unsigned ARMTargetMachine::getModuleMatchQuality(const Module &M) { unsigned ARMTargetMachine::getModuleMatchQuality(const Module &M) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment