diff options
author | Chris Lattner <sabre@nondot.org> | 2003-08-31 21:47:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-08-31 21:47:24 +0000 |
commit | 36f18aefe869fe01c4ccf09073b0fed19e9a2064 (patch) | |
tree | 4d02a2729bc852035d0fbfdd83b35cb688ee9732 /tools/gccas/gccas.cpp | |
parent | cf37c23a4716ee755802bf7fcc535902359f224a (diff) |
Remove the -stopAfterNPasses option, which has been long obsoleted by bugpoint
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8278 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gccas/gccas.cpp')
-rw-r--r-- | tools/gccas/gccas.cpp | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp index 7de05c6889..2232720396 100644 --- a/tools/gccas/gccas.cpp +++ b/tools/gccas/gccas.cpp @@ -30,32 +30,17 @@ namespace { 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()); } |