[llvm-commits] [llvm] r135006 - in /llvm/trunk: include/llvm/Target/TargetAsmInfo.h lib/Target/TargetAsmInfo.cpp
Chris Lattner
clattner at apple.com
Tue Jul 12 20:46:22 PDT 2011
On Jul 12, 2011, at 3:35 PM, Bill Wendling wrote:
> Author: void
> Date: Tue Jul 12 17:35:01 2011
> New Revision: 135006
>
> URL: http://llvm.org/viewvc/llvm-project?rev=135006&view=rev
> Log:
> There is a cyclic dependency between MC and Target if this method is out-of-line.
Why is MC including this header?
-Chris
>
> Modified:
> llvm/trunk/include/llvm/Target/TargetAsmInfo.h
> llvm/trunk/lib/Target/TargetAsmInfo.cpp
>
> Modified: llvm/trunk/include/llvm/Target/TargetAsmInfo.h
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetAsmInfo.h?rev=135006&r1=135005&r2=135006&view=diff
> ==============================================================================
> --- llvm/trunk/include/llvm/Target/TargetAsmInfo.h (original)
> +++ llvm/trunk/include/llvm/Target/TargetAsmInfo.h Tue Jul 12 17:35:01 2011
> @@ -86,7 +86,10 @@
> }
>
> 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);
>
> Modified: llvm/trunk/lib/Target/TargetAsmInfo.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetAsmInfo.cpp?rev=135006&r1=135005&r2=135006&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Target/TargetAsmInfo.cpp (original)
> +++ llvm/trunk/lib/Target/TargetAsmInfo.cpp Tue Jul 12 17:35:01 2011
> @@ -26,9 +26,3 @@
> TRI = TM.getRegisterInfo();
> TFI->getInitialFrameState(InitialFrameState);
> }
> -
> -int TargetAsmInfo::getCompactUnwindEncoding(ArrayRef<MCCFIInstruction> Instrs,
> - int DataAlignmentFactor,
> - bool IsEH) const {
> - return TFI->getCompactUnwindEncoding(Instrs, DataAlignmentFactor, IsEH);
> -}
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list