From: Daniel Dunbar Date: Fri, 31 Oct 2008 09:34:21 +0000 (+0000) Subject: Turn off module verification in Release-Asserts builds. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd913e557628abadee5112cca90e339d25b9b398;p=clang Turn off module verification in Release-Asserts builds. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58500 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Driver/clang.cpp b/Driver/clang.cpp index cf19c66d77..74dc7b4b49 100644 --- a/Driver/clang.cpp +++ b/Driver/clang.cpp @@ -1153,6 +1153,10 @@ static void InitializeCompileOptions(CompileOptions &Opts) { Opts.InlineFunctions = (Opts.OptimizationLevel > 1); Opts.UnrollLoops = (Opts.OptimizationLevel > 1 && !OptSize); Opts.SimplifyLibCalls = 1; + +#ifdef NDEBUG + Opts.VerifyModule = 0; +#endif } //===----------------------------------------------------------------------===//