mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 09:13:34 +00:00
Add a disable-verify option
llvm-svn: 6155
This commit is contained in:
parent
4596303925
commit
229be7a063
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user