correctly set LocalAreaOffset of TargetFrameInfo

llvm-svn: 29589
This commit is contained in:
Rafael Espindola 2006-08-09 17:37:45 +00:00
parent 7dc6761a16
commit 1c41fc9b06
2 changed files with 1 additions and 6 deletions

View File

@ -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);

View File

@ -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) {