summaryrefslogtreecommitdiff
path: root/tools/opt/opt.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-02-18 02:59:21 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2011-02-18 02:59:21 +0000
commit90d238ce8aa68c4ecb9a8d038ba09f263acf4305 (patch)
tree0b13401ce22b9785cf6f3f1a4da25f6dc0aafd27 /tools/opt/opt.cpp
parent5ad596f9d27a67767118857471e63b55bfb152d6 (diff)
downloadllvm-90d238ce8aa68c4ecb9a8d038ba09f263acf4305.tar.gz
llvm-90d238ce8aa68c4ecb9a8d038ba09f263acf4305.tar.bz2
llvm-90d238ce8aa68c4ecb9a8d038ba09f263acf4305.tar.xz
Make -disable-simplify-libcalls work with -std-compile-opts
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125824 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt/opt.cpp')
-rw-r--r--tools/opt/opt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index 64c08ab56a..0a945df7f7 100644
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
@@ -427,7 +427,7 @@ void AddStandardCompilePasses(PassManagerBase &PM) {
/*OptimizeSize=*/ false,
/*UnitAtATime=*/ true,
/*UnrollLoops=*/ true,
- /*SimplifyLibCalls=*/ true,
+ !DisableSimplifyLibCalls,
/*HaveExceptions=*/ true,
InliningPass);
}