aboutsummaryrefslogtreecommitdiffstats
path: root/tools/opt/opt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/opt/opt.cpp')
-rw-r--r--tools/opt/opt.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index 0602289aa6..5a6adcd9ab 100644
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
@@ -163,7 +163,6 @@ int main(int argc, char **argv) {
// 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 @@ int main(int argc, char **argv) {
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));