summaryrefslogtreecommitdiff
path: root/lib/CodeGen/BackendUtil.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-03-27 20:47:30 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-03-27 20:47:30 +0000
commitd87684dddb2bc16bfc8494ac856dfb53fb4d8348 (patch)
tree4c1f6de56bb3e1250c2e4906869ab9107d0789b0 /lib/CodeGen/BackendUtil.cpp
parentd35cc359e1572d9bdd8ea3ca83da79722c034b79 (diff)
downloadclang-d87684dddb2bc16bfc8494ac856dfb53fb4d8348.tar.gz
clang-d87684dddb2bc16bfc8494ac856dfb53fb4d8348.tar.bz2
clang-d87684dddb2bc16bfc8494ac856dfb53fb4d8348.tar.xz
Support for -Wa,-compress-debug-sections.
Also, while I'm here, support -nocompress-debug-sections too. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204959 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/BackendUtil.cpp')
-rw-r--r--lib/CodeGen/BackendUtil.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/BackendUtil.cpp b/lib/CodeGen/BackendUtil.cpp
index eee32925a7..17f5f4d633 100644
--- a/lib/CodeGen/BackendUtil.cpp
+++ b/lib/CodeGen/BackendUtil.cpp
@@ -443,6 +443,9 @@ TargetMachine *EmitAssemblyHelper::CreateTargetMachine(bool MustCreateTM) {
if (CodeGenOpts.DisableIntegratedAS)
Options.DisableIntegratedAS = true;
+ if (CodeGenOpts.CompressDebugSections)
+ Options.CompressDebugSections = true;
+
// Set frame pointer elimination mode.
if (!CodeGenOpts.DisableFPElim) {
Options.NoFramePointerElim = false;