Make -disable-simplify-libcalls work with -std-compile-opts
authorPeter Collingbourne <peter@pcc.me.uk>
Fri, 18 Feb 2011 02:59:21 +0000 (02:59 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Fri, 18 Feb 2011 02:59:21 +0000 (02:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125824 91177308-0d34-0410-b5e6-96231b3b80d8

tools/opt/opt.cpp

index 64c08ab..0a945df 100644 (file)
@@ -427,7 +427,7 @@ void AddStandardCompilePasses(PassManagerBase &PM) {
                              /*OptimizeSize=*/ false,
                              /*UnitAtATime=*/ true,
                              /*UnrollLoops=*/ true,
-                             /*SimplifyLibCalls=*/ true,
+                             !DisableSimplifyLibCalls,
                              /*HaveExceptions=*/ true,
                              InliningPass);
 }