Add a disable-verify option

llvm-svn: 6155
This commit is contained in:
Chris Lattner 2003-05-12 22:12:44 +00:00
parent 4596303925
commit 229be7a063

View File

@ -94,6 +94,9 @@ namespace {
cl::alias QuietA("quiet", cl::desc("Alias for -q"),
cl::aliasopt(Quiet));
cl::opt<bool> NoVerify("disable-verify", cl::Hidden,
cl::desc("Do not verify input module"));
// The AnalysesList is automatically populated with registered Passes by the
// PassNameParser.
//
@ -130,6 +133,7 @@ int main(int argc, char **argv) {
Passes.add(new TargetData("analyze", CurMod));
// Make sure the input LLVM is well formed.
if (!NoVerify)
Passes.add(createVerifierPass());
// Create a new optimization pass for each one specified on the command line