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
This commit is contained in:
Andrew Lenharth 2008-03-19 20:49:51 +00:00
parent 4fe3073cfb
commit 50b5742157

View File

@ -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);