|
This patch adds a new Clang compiler flag "-gline-tables-only". It should reduce the amount of emitted debug information:
1) DIEs in .debug_info should only have types DW_TAG_compile_unit, DW_TAG_subprogram, DW_TAG_inlined_subroutine (for opt builds), DW_TAG_lexical_block.
2) .debug_str should only contain function names
3) No debug data for types/namespaces/variables should be emitted.
4) The data in .debug_line should be enough to produce valid stack traces with function names and line numbers.
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+161 lines, -38 lines) |
Patch |
|
M |
include/clang/Driver/Options.td
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
include/clang/Frontend/CodeGenOptions.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
lib/CodeGen/CGBlocks.cpp
|
View
|
1
2
3
|
1 chunk |
+10 lines, -8 lines |
0 comments
|
Download
|
|
M |
lib/CodeGen/CGDebugInfo.cpp
|
View
|
1
2
3
|
11 chunks |
+43 lines, -17 lines |
0 comments
|
Download
|
|
M |
lib/CodeGen/CGDecl.cpp
|
View
|
1
2
3
|
4 chunks |
+20 lines, -10 lines |
0 comments
|
Download
|
|
M |
lib/CodeGen/CodeGenFunction.cpp
|
View
|
1
2
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
lib/CodeGen/CodeGenModule.cpp
|
View
|
1
2
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
lib/Driver/Tools.cpp
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
lib/Frontend/CompilerInvocation.cpp
|
View
|
1
2
3
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
|
A |
test/CodeGen/debug-info-gline-tables-only.c
|
View
|
1
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
|
A |
test/CodeGen/debug-info-gline-tables-only2.c
|
View
|
1
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
|
A |
test/CodeGenCXX/debug-info-gline-tables-only.cpp
|
View
|
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
|
M |
test/Driver/debug-options.c
|
View
|
1
2
3
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
Total messages: 1
|