Changes in directory llvm/tools/opt:

opt.cpp updated: 1.118 -> 1.119
---
Log message:

For PR786: http://llvm.org/PR786 :
Turn on -Wunused and -Wno-unused-parameter. Clean up most of the resulting
fall out by removing unused variables. Remaining warnings have to do with
unused functions (I didn't want to delete code without review) and unused
variables in generated code. Maintainers should clean up the remaining 
issues when they see them. All changes pass DejaGnu tests and Olden.


---
Diffs of the changes:  (+2 -3)

 opt.cpp |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)


Index: llvm/tools/opt/opt.cpp
diff -u llvm/tools/opt/opt.cpp:1.118 llvm/tools/opt/opt.cpp:1.119
--- llvm/tools/opt/opt.cpp:1.118        Mon Aug 28 12:31:55 2006
+++ llvm/tools/opt/opt.cpp      Thu Nov  2 14:25:50 2006
@@ -163,7 +163,6 @@
     // FIXME: The choice of target should be controllable on the command line.
     std::auto_ptr<TargetMachine> target;
 
-    TargetMachine* TM = NULL;
     std::string ErrorMessage;
 
     // Load the input module...
@@ -233,9 +232,9 @@
         Passes.add(P);
         
         if (AnalyzeOnly) {
-          if (BasicBlockPass *BBP = dynamic_cast<BasicBlockPass*>(P))
+          if (dynamic_cast<BasicBlockPass*>(P))
             Passes.add(new BasicBlockPassPrinter(PassInf));
-          else if (FunctionPass *FP = dynamic_cast<FunctionPass*>(P))
+          else if (dynamic_cast<FunctionPass*>(P))
             Passes.add(new FunctionPassPrinter(PassInf));
           else
             Passes.add(new ModulePassPrinter(PassInf));



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to