From c8c3acfea439998da4fae895becce7c1468e3c63 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Mon, 18 Jul 2011 22:32:12 +0000 Subject: [PATCH] Eliminate TargetAsmInfo::getCompactUnwindEncoding. This get rid of the use of TargetFrameLowering in TargetAsmInfo. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135439 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Target/TargetAsmInfo.h | 8 -------- lib/Target/TargetAsmInfo.cpp | 3 --- 2 files changed, 11 deletions(-) diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h index d04a5f3643b..a4006a889b5 100644 --- a/include/llvm/Target/TargetAsmInfo.h +++ b/include/llvm/Target/TargetAsmInfo.h @@ -15,7 +15,6 @@ #define LLVM_TARGET_TARGETASMINFO_H #include "llvm/Target/TargetLoweringObjectFile.h" -#include "llvm/Target/TargetFrameLowering.h" #include "llvm/Target/TargetRegisterInfo.h" namespace llvm { @@ -25,7 +24,6 @@ namespace llvm { class TargetLoweringObjectFile; class TargetAsmInfo { - const TargetFrameLowering *TFI; const TargetLoweringObjectFile *TLOF; public: @@ -62,12 +60,6 @@ public: bool isFunctionEHFrameSymbolPrivate() const { return TLOF->isFunctionEHFrameSymbolPrivate(); } - - int getCompactUnwindEncoding(ArrayRef Instrs, - int DataAlignmentFactor, - bool IsEH) const { - return TFI->getCompactUnwindEncoding(Instrs, DataAlignmentFactor, IsEH); - } }; } diff --git a/lib/Target/TargetAsmInfo.cpp b/lib/Target/TargetAsmInfo.cpp index 3320bfbfa72..94f56f63ed3 100644 --- a/lib/Target/TargetAsmInfo.cpp +++ b/lib/Target/TargetAsmInfo.cpp @@ -8,14 +8,11 @@ //===----------------------------------------------------------------------===// #include "llvm/Target/TargetAsmInfo.h" -#include "llvm/Target/TargetData.h" #include "llvm/Target/TargetLowering.h" #include "llvm/Target/TargetLoweringObjectFile.h" #include "llvm/Target/TargetMachine.h" -#include "llvm/Target/TargetRegisterInfo.h" using namespace llvm; TargetAsmInfo::TargetAsmInfo(const TargetMachine &TM) { TLOF = &TM.getTargetLowering()->getObjFileLowering(); - TFI = TM.getFrameLowering(); } -- 2.34.1