hasFP() is now a virtual method of MRegisterInfo.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33455 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng
2007-01-23 00:57:47 +00:00
parent fad2912522
commit dc77540d95
15 changed files with 47 additions and 18 deletions

View File

@@ -277,7 +277,7 @@ ARMRegisterInfo::getCalleeSavedRegClasses() const {
/// pointer register. This is true if the function has variable sized allocas
/// or if frame pointer elimination is disabled.
///
static bool hasFP(const MachineFunction &MF) {
bool ARMRegisterInfo::hasFP(const MachineFunction &MF) const {
return NoFramePointerElim || MF.getFrameInfo()->hasVarSizedObjects();
}