There is a cyclic dependency between MC and Target if this method is out-of-line.

llvm-svn: 135006
This commit is contained in:
Bill Wendling 2011-07-12 22:35:01 +00:00
parent ef1c6845ae
commit 5d11676eef
2 changed files with 4 additions and 7 deletions

View File

@ -86,7 +86,10 @@ public:
}
int getCompactUnwindEncoding(ArrayRef<MCCFIInstruction> Instrs,
int DataAlignmentFactor, bool IsEH) const;
int DataAlignmentFactor,
bool IsEH) const {
return TFI->getCompactUnwindEncoding(Instrs, DataAlignmentFactor, IsEH);
}
const unsigned *getCalleeSavedRegs(MachineFunction *MF = 0) const {
return TRI->getCalleeSavedRegs(MF);

View File

@ -26,9 +26,3 @@ 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);
}