Turn off module verification in Release-Asserts builds.

llvm-svn: 58500
This commit is contained in:
Daniel Dunbar 2008-10-31 09:34:21 +00:00
parent 61956c460a
commit ada702ef45
1 changed files with 4 additions and 0 deletions

View File

@ -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
}
//===----------------------------------------------------------------------===//