Eliminate TargetAsmInfo::getCompactUnwindEncoding. This get rid of the
authorEvan Cheng <evan.cheng@apple.com>
Mon, 18 Jul 2011 22:32:12 +0000 (22:32 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Mon, 18 Jul 2011 22:32:12 +0000 (22:32 +0000)
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
lib/Target/TargetAsmInfo.cpp

index d04a5f3643b4940aa8b715413fc248fd0700fa65..a4006a889b518b9a521f8005bc720844c404d314 100644 (file)
@@ -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<MCCFIInstruction> Instrs,
-                               int DataAlignmentFactor,
-                               bool IsEH) const {
-    return TFI->getCompactUnwindEncoding(Instrs, DataAlignmentFactor, IsEH);
-  }
 };
 
 }
index 3320bfbfa721735128de1fcfe32c93870f155679..94f56f63ed3c53df3f3ca897a81fdd1c8972ce1a 100644 (file)
@@ -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();
 }