llvm-ld deserves disable-verify too. opt shouldn't have all the fun options.

llvm-svn: 48550
This commit is contained in:
Andrew Lenharth 2008-03-19 20:49:51 +00:00
parent 7da2bceb3b
commit 4d93dc17b2
1 changed files with 5 additions and 1 deletions

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,6 +209,7 @@ void Optimize(Module* M) {
}
// Make sure everything is still good.
if(!DontVerify)
Passes.add(createVerifierPass());
// Run our queue of passes all at once now, efficiently.