diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-10-31 09:34:21 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-10-31 09:34:21 +0000 |
commit | dd913e557628abadee5112cca90e339d25b9b398 (patch) | |
tree | 9f7a69e701ba63bf43283086c5d168f13a04eda2 | |
parent | b48fe3812047e84164925c8938ce82be0624c40c (diff) |
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
-rw-r--r-- | Driver/clang.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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 } //===----------------------------------------------------------------------===// |