summaryrefslogtreecommitdiff
path: root/lib/Target/MSP430/MSP430RegisterInfo.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-04-21 03:18:23 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-04-21 03:18:23 +0000
commite566763b1915c7a4821ce95937b763724d271fec (patch)
treea360b0044ed2847396555f4ea4c4585c916a45ec /lib/Target/MSP430/MSP430RegisterInfo.cpp
parent5528e7bcb1209094a68bbf6d1efeefc3ca34774f (diff)
downloadllvm-e566763b1915c7a4821ce95937b763724d271fec.tar.gz
llvm-e566763b1915c7a4821ce95937b763724d271fec.tar.bz2
llvm-e566763b1915c7a4821ce95937b763724d271fec.tar.xz
Implement -disable-non-leaf-fp-elim which disable frame pointer elimination
optimization for non-leaf functions. This will be hooked up to gcc's -momit-leaf-frame-pointer option. rdar://7886181 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101984 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MSP430/MSP430RegisterInfo.cpp')
-rw-r--r--lib/Target/MSP430/MSP430RegisterInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/MSP430/MSP430RegisterInfo.cpp b/lib/Target/MSP430/MSP430RegisterInfo.cpp
index d91783a80c..0cae26714b 100644
--- a/lib/Target/MSP430/MSP430RegisterInfo.cpp
+++ b/lib/Target/MSP430/MSP430RegisterInfo.cpp
@@ -138,7 +138,7 @@ MSP430RegisterInfo::getPointerRegClass(unsigned Kind) const {
bool MSP430RegisterInfo::hasFP(const MachineFunction &MF) const {
const MachineFrameInfo *MFI = MF.getFrameInfo();
- return (NoFramePointerElim ||
+ return (DisableFramePointerElim(MF) ||
MF.getFrameInfo()->hasVarSizedObjects() ||
MFI->isFrameAddressTaken());
}