diff options
author | Alexey Samsonov <samsonov@google.com> | 2012-05-04 07:39:27 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2012-05-04 07:39:27 +0000 |
commit | fd00eecad6fa5400cf37269d84361a0551d0e6d3 (patch) | |
tree | 067719696580ccce897a3e0234cdba9eac021af7 /include/clang/Frontend/CodeGenOptions.h | |
parent | dbbaed3a485fdc5b5efb01d1e1c56f27e79bff80 (diff) |
This patch adds a new Clang compiler flag "-gline-tables-only".
It reduces the amount of emitted debug information:
1) DIEs in .debug_info have types DW_TAG_compile_unit, DW_TAG_subprogram,
DW_TAG_inlined_subroutine (for opt builds) and DW_TAG_lexical_block only.
2) .debug_str contains only function names.
3) No debug data for types/namespaces/variables is emitted.
4) The data in .debug_line is enough to produce valid stack traces with
function names and line numbers.
Reviewed by Eric Christopher.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156160 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/CodeGenOptions.h')
-rw-r--r-- | include/clang/Frontend/CodeGenOptions.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Frontend/CodeGenOptions.h b/include/clang/Frontend/CodeGenOptions.h index 168dd26783..3181c0affd 100644 --- a/include/clang/Frontend/CodeGenOptions.h +++ b/include/clang/Frontend/CodeGenOptions.h @@ -37,6 +37,8 @@ public: enum DebugInfoKind { NoDebugInfo, // Don't generate debug info. + DebugLineTablesOnly, // Emit only debug info necessary for generating + // line number tables (-gline-tables-only). LimitedDebugInfo, // Limit generated debug info to reduce size // (-flimit-debug-info). FullDebugInfo // Generate complete debug info. |