diff options
author | Hal Finkel <hfinkel@anl.gov> | 2014-04-05 00:16:28 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2014-04-05 00:16:28 +0000 |
commit | 41e9b1d5595874f5bd8a6f8668a0482a95c07d22 (patch) | |
tree | aa8c3ec14cb72d9b9baee799ddab50a465b3bc08 /llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp | |
parent | 48a01cb5ecec317e345eacbe19a08db0004f5a27 (diff) | |
download | bcm5719-llvm-41e9b1d5595874f5bd8a6f8668a0482a95c07d22.tar.gz bcm5719-llvm-41e9b1d5595874f5bd8a6f8668a0482a95c07d22.zip |
[PowerPC] Remove unused TM member variable to unbreak build
Fix "error: private field 'TM' is not used [-Werror,-Wunused-private-field]"
llvm-svn: 205660
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp b/llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp index ed849b5bc85..23a75cf39df 100644 --- a/llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp +++ b/llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp @@ -33,17 +33,16 @@ void initializePPCTTIPass(PassRegistry &); namespace { class PPCTTI final : public ImmutablePass, public TargetTransformInfo { - const PPCTargetMachine *TM; const PPCSubtarget *ST; const PPCTargetLowering *TLI; public: - PPCTTI() : ImmutablePass(ID), TM(0), ST(0), TLI(0) { + PPCTTI() : ImmutablePass(ID), ST(0), TLI(0) { llvm_unreachable("This pass cannot be directly constructed"); } PPCTTI(const PPCTargetMachine *TM) - : ImmutablePass(ID), TM(TM), ST(TM->getSubtargetImpl()), + : ImmutablePass(ID), ST(TM->getSubtargetImpl()), TLI(TM->getTargetLowering()) { initializePPCTTIPass(*PassRegistry::getPassRegistry()); } |