summaryrefslogtreecommitdiffstats
path: root/llvm/tools/opt/opt.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-03-19 21:37:17 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-03-19 21:37:17 +0000
commit0a93e2db9c14fb7da613ecccf5a82cab8402a9e5 (patch)
tree173aee9c7dd8f81916411aa7b2e27ca65de07071 /llvm/tools/opt/opt.cpp
parentd4e0263e0aa501948853e00d8a59426cd1c3a6b5 (diff)
downloadbcm5719-llvm-0a93e2db9c14fb7da613ecccf5a82cab8402a9e5.tar.gz
bcm5719-llvm-0a93e2db9c14fb7da613ecccf5a82cab8402a9e5.zip
PassManagerBuilder: Remove effectively dead 'StripDebug' option
`StripDebug` was only used by tools/opt/opt.cpp in `AddStandardLinkPasses()`, but opt.cpp adds the same pass based on its command-line flag before it calls `AddStandardLinkPasses()`. Stripping debug info twice isn't very useful. llvm-svn: 232765
Diffstat (limited to 'llvm/tools/opt/opt.cpp')
-rw-r--r--llvm/tools/opt/opt.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/tools/opt/opt.cpp b/llvm/tools/opt/opt.cpp
index ce057da6cea..6c27c1ecbbf 100644
--- a/llvm/tools/opt/opt.cpp
+++ b/llvm/tools/opt/opt.cpp
@@ -234,7 +234,6 @@ static void AddOptimizationPasses(legacy::PassManagerBase &MPM,
static void AddStandardLinkPasses(legacy::PassManagerBase &PM) {
PassManagerBuilder Builder;
Builder.VerifyInput = true;
- Builder.StripDebug = StripDebug;
if (DisableOptimizations)
Builder.OptLevel = 0;
OpenPOWER on IntegriCloud