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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135006 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling 2011-07-12 22:35:01 +00:00
parent e8b323aed4
commit d5efb1eee6
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);
}