mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 05:00:26 +00:00
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:
parent
4fe3073cfb
commit
50b5742157
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user