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>
|
static cl::list<const PassInfo*, bool, PassNameParser>
|
||||||
OptimizationList(cl::desc("Optimizations available:"));
|
OptimizationList(cl::desc("Optimizations available:"));
|
||||||
|
|
||||||
|
//Don't veryify at the end
|
||||||
|
static cl::opt<bool> DontVerify("disable-verify", cl::ReallyHidden);
|
||||||
|
|
||||||
// Optimization Enumeration
|
// Optimization Enumeration
|
||||||
enum OptimizationLevels {
|
enum OptimizationLevels {
|
||||||
OPT_FAST_COMPILE = 1,
|
OPT_FAST_COMPILE = 1,
|
||||||
|
@ -206,7 +209,8 @@ void Optimize(Module* M) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure everything is still good.
|
// Make sure everything is still good.
|
||||||
Passes.add(createVerifierPass());
|
if(!DontVerify)
|
||||||
|
Passes.add(createVerifierPass());
|
||||||
|
|
||||||
// Run our queue of passes all at once now, efficiently.
|
// Run our queue of passes all at once now, efficiently.
|
||||||
Passes.run(*M);
|
Passes.run(*M);
|
||||||
|
|
Loading…
Reference in New Issue