diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-06-06 18:25:08 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-06-06 18:25:08 +0000 |
commit | a7542d5f870c5d98960d1676e23ac1d1d975d7e5 (patch) | |
tree | 7213d08a716536d4182511406d58b1d1f05f0e06 /tools | |
parent | a97b180fc44718e525bb03b50e05fe66622c2b02 (diff) | |
download | external_llvm-a7542d5f870c5d98960d1676e23ac1d1d975d7e5.zip external_llvm-a7542d5f870c5d98960d1676e23ac1d1d975d7e5.tar.gz external_llvm-a7542d5f870c5d98960d1676e23ac1d1d975d7e5.tar.bz2 |
Remove unused private fields found by clang's new -Wunused-private-field.
There are some that I didn't remove this round because they looked like
obvious stubs. There are dead variables in gtest too, they should be
fixed upstream.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158090 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llvm-diff/DiffConsumer.h | 6 | ||||
-rw-r--r-- | tools/llvm-diff/DifferenceEngine.h | 5 | ||||
-rw-r--r-- | tools/llvm-diff/llvm-diff.cpp | 4 | ||||
-rw-r--r-- | tools/lto/LTOCodeGenerator.h | 1 |
4 files changed, 6 insertions, 10 deletions
diff --git a/tools/llvm-diff/DiffConsumer.h b/tools/llvm-diff/DiffConsumer.h index 2060fe1..98e369b 100644 --- a/tools/llvm-diff/DiffConsumer.h +++ b/tools/llvm-diff/DiffConsumer.h @@ -67,8 +67,6 @@ namespace llvm { }; raw_ostream &out; - Module *LModule; - Module *RModule; SmallVector<DiffContext, 5> contexts; bool Differences; unsigned Indent; @@ -78,8 +76,8 @@ namespace llvm { void indent(); public: - DiffConsumer(Module *L, Module *R) - : out(errs()), LModule(L), RModule(R), Differences(false), Indent(0) {} + DiffConsumer() + : out(errs()), Differences(false), Indent(0) {} bool hadDifferences() const; void enterContext(Value *L, Value *R); diff --git a/tools/llvm-diff/DifferenceEngine.h b/tools/llvm-diff/DifferenceEngine.h index 7ea79e4..0246d8f 100644 --- a/tools/llvm-diff/DifferenceEngine.h +++ b/tools/llvm-diff/DifferenceEngine.h @@ -59,8 +59,8 @@ namespace llvm { virtual ~Oracle() {} }; - DifferenceEngine(LLVMContext &context, Consumer &consumer) - : context(context), consumer(consumer), globalValueOracle(0) {} + DifferenceEngine(Consumer &consumer) + : consumer(consumer), globalValueOracle(0) {} void diff(Module *L, Module *R); void diff(Function *L, Function *R); @@ -84,7 +84,6 @@ namespace llvm { bool equivalentAsOperands(GlobalValue *L, GlobalValue *R); private: - LLVMContext &context; Consumer &consumer; Oracle *globalValueOracle; }; diff --git a/tools/llvm-diff/llvm-diff.cpp b/tools/llvm-diff/llvm-diff.cpp index 774169b..45957b3 100644 --- a/tools/llvm-diff/llvm-diff.cpp +++ b/tools/llvm-diff/llvm-diff.cpp @@ -78,8 +78,8 @@ int main(int argc, char **argv) { Module *RModule = ReadModule(Context, RightFilename); if (!LModule || !RModule) return 1; - DiffConsumer Consumer(LModule, RModule); - DifferenceEngine Engine(Context, Consumer); + DiffConsumer Consumer; + DifferenceEngine Engine(Consumer); // If any global names were given, just diff those. if (!GlobalsToCompare.empty()) { diff --git a/tools/lto/LTOCodeGenerator.h b/tools/lto/LTOCodeGenerator.h index 032dc37..3081b7d 100644 --- a/tools/lto/LTOCodeGenerator.h +++ b/tools/lto/LTOCodeGenerator.h @@ -70,7 +70,6 @@ private: llvm::TargetMachine* _target; bool _emitDwarfDebugInfo; bool _scopeRestrictionsDone; - bool _runInternalizePass; lto_codegen_model _codeModel; StringSet _mustPreserveSymbols; StringSet _asmUndefinedRefs; |