summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-07-18 22:32:12 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-07-18 22:32:12 +0000
commit4ce2e4f28947f28b5bbedd624f79ccb655395809 (patch)
tree381e43584d3b8e3d3d26ba7677e3965960f4d025
parent67c033e6b8c935f28b22c1d79cc12d883d61e04d (diff)
downloadbcm5719-llvm-4ce2e4f28947f28b5bbedd624f79ccb655395809.tar.gz
bcm5719-llvm-4ce2e4f28947f28b5bbedd624f79ccb655395809.zip
Eliminate TargetAsmInfo::getCompactUnwindEncoding. This get rid of the
use of TargetFrameLowering in TargetAsmInfo. llvm-svn: 135439
-rw-r--r--llvm/include/llvm/Target/TargetAsmInfo.h8
-rw-r--r--llvm/lib/Target/TargetAsmInfo.cpp3
2 files changed, 0 insertions, 11 deletions
diff --git a/llvm/include/llvm/Target/TargetAsmInfo.h b/llvm/include/llvm/Target/TargetAsmInfo.h
index d04a5f3643b..a4006a889b5 100644
--- a/llvm/include/llvm/Target/TargetAsmInfo.h
+++ b/llvm/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<MCCFIInstruction> Instrs,
- int DataAlignmentFactor,
- bool IsEH) const {
- return TFI->getCompactUnwindEncoding(Instrs, DataAlignmentFactor, IsEH);
- }
};
}
diff --git a/llvm/lib/Target/TargetAsmInfo.cpp b/llvm/lib/Target/TargetAsmInfo.cpp
index 3320bfbfa72..94f56f63ed3 100644
--- a/llvm/lib/Target/TargetAsmInfo.cpp
+++ b/llvm/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();
}
OpenPOWER on IntegriCloud