Add an option to disable the LLVM verifier pass (which is still always
disabled in NDEBUG builds). The option applies only to -cc1 invocations and is:
-disable_llvm_verifier
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96046 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp
index 7287d42..bd45f07 100644
--- a/lib/Frontend/CompilerInvocation.cpp
+++ b/lib/Frontend/CompilerInvocation.cpp
@@ -794,7 +794,7 @@
#ifdef NDEBUG
Opts.VerifyModule = 0;
#else
- Opts.VerifyModule = 1;
+ Opts.VerifyModule = !Args.hasArg(OPT_disable_llvm_verifier);
#endif
}