Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1199)

Issue 6112056: -gline-tables-only flag for Clang (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 11 months ago by samsonov
Modified:
11 years, 10 months ago
CC:
cfe-commits_cs.uiuc.edu
Base URL:
https://llvm.org/svn/llvm-project/cfe/trunk/
Visibility:
Public.

Description

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.

Patch Set 1 : -gline-tables-only flag for Clang #

Total comments: 1

Patch Set 2 : -gline-tables-only flag for Clang #

Patch Set 3 : -gline-tables-only flag for Clang #

Patch Set 4 : "-gline-tables-only flag for Clang" #

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

Messages

Total messages: 1
glider
11 years, 11 months ago (2012-04-25 12:07:18 UTC) #1
http://codereview.appspot.com/6112056/diff/2001/test/CodeGen/debug-info-gline...
File test/CodeGen/debug-info-gline-tables-only.c (right):

http://codereview.appspot.com/6112056/diff/2001/test/CodeGen/debug-info-gline...
test/CodeGen/debug-info-gline-tables-only.c:8: // CHECK-NOT: DW_TAG_typedef
This isn't going to work. You'll need CHECK directives around each CHECK-NOT
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b