Move a function out-of-line.

llvm-svn: 134640
This commit is contained in:
Bill Wendling 2011-07-07 21:05:13 +00:00
parent 11af28bdbd
commit 1a423d8b35
2 changed files with 9 additions and 4 deletions

View File

@ -20,6 +20,7 @@
#include "llvm/Target/TargetRegisterInfo.h"
namespace llvm {
template <typename T> class ArrayRef;
class MCSection;
class MCContext;
class MachineFunction;
@ -84,10 +85,8 @@ public:
return TLOF->isFunctionEHFrameSymbolPrivate();
}
int getCompactUnwindEncoding(const std::vector<MCCFIInstruction> &Instrs,
int DataAlignmentFactor, bool IsEH) const {
return TFI->getCompactUnwindEncoding(Instrs, DataAlignmentFactor, IsEH);
}
int getCompactUnwindEncoding(ArrayRef<MCCFIInstruction> Instrs,
int DataAlignmentFactor, bool IsEH) const;
const unsigned *getCalleeSavedRegs(MachineFunction *MF = 0) const {
return TRI->getCalleeSavedRegs(MF);

View File

@ -26,3 +26,9 @@ TargetAsmInfo::TargetAsmInfo(const TargetMachine &TM) {
TRI = TM.getRegisterInfo();
TFI->getInitialFrameState(InitialFrameState);
}
int TargetAsmInfo::getCompactUnwindEncoding(ArrayRef<MCCFIInstruction> Instrs,
int DataAlignmentFactor,
bool IsEH) const {
return TFI->getCompactUnwindEncoding(Instrs, DataAlignmentFactor, IsEH);
}