mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-26 21:20:29 +00:00
Add a disable-verify option
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6155 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0b43f4ef29
commit
59039a926d
@ -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,7 +133,8 @@ int main(int argc, char **argv) {
|
||||
Passes.add(new TargetData("analyze", CurMod));
|
||||
|
||||
// Make sure the input LLVM is well formed.
|
||||
Passes.add(createVerifierPass());
|
||||
if (!NoVerify)
|
||||
Passes.add(createVerifierPass());
|
||||
|
||||
// Create a new optimization pass for each one specified on the command line
|
||||
for (unsigned i = 0; i < AnalysesList.size(); ++i) {
|
||||
|
Loading…
Reference in New Issue
Block a user