forked from OSchip/llvm-project
llvm-ld deserves disable-verify too. opt shouldn't have all the fun options.
llvm-svn: 48550
This commit is contained in:
parent
7da2bceb3b
commit
4d93dc17b2
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue