diff options
| author | David Blaikie <dblaikie@gmail.com> | 2014-03-27 20:47:30 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2014-03-27 20:47:30 +0000 |
| commit | d87684dddb2bc16bfc8494ac856dfb53fb4d8348 (patch) | |
| tree | 4c1f6de56bb3e1250c2e4906869ab9107d0789b0 /lib/CodeGen/BackendUtil.cpp | |
| parent | d35cc359e1572d9bdd8ea3ca83da79722c034b79 (diff) | |
| download | clang-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.cpp | 3 |
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; |
