diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-07-12 22:35:01 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-07-12 22:35:01 +0000 |
commit | d5efb1eee65cbee06722341869e5c88d2f648fa3 (patch) | |
tree | 61799bd6b822b89701804f0e319c28cbd02f47d1 | |
parent | e8b323aed4654548ea124811ce051d6b59061e74 (diff) |
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
-rw-r--r-- | include/llvm/Target/TargetAsmInfo.h | 5 | ||||
-rw-r--r-- | lib/Target/TargetAsmInfo.cpp | 6 |
2 files changed, 4 insertions, 7 deletions
diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h index 44f23ad11a..96e085d7bb 100644 --- a/include/llvm/Target/TargetAsmInfo.h +++ b/include/llvm/Target/TargetAsmInfo.h @@ -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); diff --git a/lib/Target/TargetAsmInfo.cpp b/lib/Target/TargetAsmInfo.cpp index 1d57d8498e..475a942da0 100644 --- a/lib/Target/TargetAsmInfo.cpp +++ b/lib/Target/TargetAsmInfo.cpp @@ -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); -} |