Add simple FP indicator for given function hook

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70705 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Anton Korobeynikov 2009-05-03 13:00:28 +00:00
parent dcb802cf7b
commit 3a4fbcfd33

View File

@ -15,8 +15,10 @@
#include "MSP430.h"
#include "MSP430RegisterInfo.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetOptions.h"
#include "llvm/ADT/BitVector.h"
using namespace llvm;
@ -54,7 +56,7 @@ MSP430RegisterInfo::getReservedRegs(const MachineFunction &MF) const {
}
bool MSP430RegisterInfo::hasFP(const MachineFunction &MF) const {
assert(0 && "Not implemented yet!");
return NoFramePointerElim || MF.getFrameInfo()->hasVarSizedObjects();
}
void