diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2008-03-19 20:49:51 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2008-03-19 20:49:51 +0000 |
commit | 50b5742157c9ca3e3c0bf7d8990cf745cd4811cd (patch) | |
tree | 02c42f869df04cf255e4c8c52bab042cbcc3dacb | |
parent | 4fe3073cfb5273a3655aef0c8d50c96882f26882 (diff) | |
download | external_llvm-50b5742157c9ca3e3c0bf7d8990cf745cd4811cd.zip external_llvm-50b5742157c9ca3e3c0bf7d8990cf745cd4811cd.tar.gz external_llvm-50b5742157c9ca3e3c0bf7d8990cf745cd4811cd.tar.bz2 |
llvm-ld deserves disable-verify too. opt shouldn't have all the fun options.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48550 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/llvm-ld/Optimize.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/llvm-ld/Optimize.cpp b/tools/llvm-ld/Optimize.cpp index 17c65b5..85c6074 100644 --- a/tools/llvm-ld/Optimize.cpp +++ b/tools/llvm-ld/Optimize.cpp @@ -32,6 +32,9 @@ using namespace llvm; static cl::list<const PassInfo*, bool, PassNameParser> OptimizationList(cl::desc("Optimizations available:")); +//Don't veryify at the end +static cl::opt<bool> DontVerify("disable-verify", cl::ReallyHidden); + // Optimization Enumeration enum OptimizationLevels { OPT_FAST_COMPILE = 1, @@ -206,7 +209,8 @@ void Optimize(Module* M) { } // Make sure everything is still good. - Passes.add(createVerifierPass()); + if(!DontVerify) + Passes.add(createVerifierPass()); // Run our queue of passes all at once now, efficiently. Passes.run(*M); |