Amend -verify-each description to PassManagerBuilder changes.

We can't verify after each pass anymore with PassManagerBuilder, but
-verify-each is a hidden flag mainly useful for debugging our own
passes anyway.
This commit is contained in:
David Nadlinger 2012-11-04 00:39:59 +01:00
parent dbe5e97d85
commit f95371aeb5

View file

@ -56,7 +56,7 @@ noVerify("disable-verify",
static cl::opt<bool>
verifyEach("verify-each",
cl::desc("Run verifier after each optimization pass"),
cl::desc("Run verifier after D-specific and explicitly specified optimization passes"),
cl::Hidden,
cl::ZeroOrMore);
@ -236,7 +236,7 @@ bool ldc_optimize_module(llvm::Module* m)
// If the -strip-debug command line option was specified, add it before
// anything else.
if (stripDebug)
addPass(mpm, createStripSymbolsPass(true));
mpm.add(createStripSymbolsPass(true));
bool defaultsAdded = false;
// Create a new optimization pass for each one specified on the command line