[llvm-commits] CVS: llvm/tools/gccas/gccas.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Aug 31 16:48:01 PDT 2003


Changes in directory llvm/tools/gccas:

gccas.cpp updated: 1.69 -> 1.70

---
Log message:

Remove the -stopAfterNPasses option, which has been long obsoleted by bugpoint


---
Diffs of the changes:

Index: llvm/tools/gccas/gccas.cpp
diff -u llvm/tools/gccas/gccas.cpp:1.69 llvm/tools/gccas/gccas.cpp:1.70
--- llvm/tools/gccas/gccas.cpp:1.69	Sun Aug 31 16:45:55 2003
+++ llvm/tools/gccas/gccas.cpp	Sun Aug 31 16:47:24 2003
@@ -30,32 +30,17 @@
   OutputFilename("o", cl::desc("Override output filename"),
                  cl::value_desc("filename"));
 
-  cl::opt<int>
-  RunNPasses("stopAfterNPasses",
-             cl::desc("Only run the first N passes of gccas"), cl::Hidden,
-             cl::value_desc("# passes"));
-
   cl::opt<bool>   
   Verify("verify", cl::desc("Verify each pass result"));
 }
 
 
 static inline void addPass(PassManager &PM, Pass *P) {
-  static int NumPassesCreated = 0;
+  // Add the pass to the pass manager...
+  PM.add(P);
   
-  // If we haven't already created the number of passes that was requested...
-  if (RunNPasses == 0 || RunNPasses > NumPassesCreated) {
-    // Add the pass to the pass manager...
-    PM.add(P);
-
-    // If we are verifying all of the intermediate steps, add the verifier...
-    if (Verify) PM.add(createVerifierPass());
-
-    // Keep track of how many passes we made for -stopAfterNPasses
-    ++NumPassesCreated;
-  } else {
-    delete P;             // We don't want this pass to run, just delete it now
-  }
+  // If we are verifying all of the intermediate steps, add the verifier...
+  if (Verify) PM.add(createVerifierPass());
 }
 
 





More information about the llvm-commits mailing list