From cfcb775b56f5792259b02d695d32e3e51ab2cf30 Mon Sep 17 00:00:00 2001 From: John McCall Date: Fri, 12 Feb 2010 23:47:27 +0000 Subject: 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 --- clang/lib/Frontend/CompilerInvocation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Frontend/CompilerInvocation.cpp') 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 } -- cgit v1.1