aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-02-12 23:47:27 +0000
committerJohn McCall <rjmccall@apple.com>2010-02-12 23:47:27 +0000
commitcfcb775b56f5792259b02d695d32e3e51ab2cf30 (patch)
treed179959b61387c058276b721c0e6ebec73c0e03b /clang/lib/Frontend/CompilerInvocation.cpp
parent34749d879de12f5cbbc08fc8f2553bf5d9ee5739 (diff)
downloadllvm-cfcb775b56f5792259b02d695d32e3e51ab2cf30.zip
llvm-cfcb775b56f5792259b02d695d32e3e51ab2cf30.tar.gz
llvm-cfcb775b56f5792259b02d695d32e3e51ab2cf30.tar.bz2
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 llvm-svn: 96046
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 7287d42..bd45f07 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -794,7 +794,7 @@ static void ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args,
#ifdef NDEBUG
Opts.VerifyModule = 0;
#else
- Opts.VerifyModule = 1;
+ Opts.VerifyModule = !Args.hasArg(OPT_disable_llvm_verifier);
#endif
}