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

Issue 6114059: Use enum to set size of debug info generated by Clang" (Closed)

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

Description

This patch follows clattner's advice and introduces enum (instead of bool flags) that defines the size of debug info generated by Clang. This patch doesn't change the behavior and is a first step to introducing -gline-tables-only flag (http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20120423/056674.html).

Patch Set 1 #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -19 lines) Patch
M include/clang/Frontend/CodeGenOptions.h View 5 chunks +11 lines, -4 lines 0 comments Download
M lib/CodeGen/BackendUtil.cpp View 1 chunk +1 line, -1 line 0 comments Download
M lib/CodeGen/CGClass.cpp View 1 chunk +2 lines, -1 line 2 comments Download
M lib/CodeGen/CGDebugInfo.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M lib/CodeGen/CGExprCXX.cpp View 1 chunk +1 line, -1 line 0 comments Download
M lib/CodeGen/CGExprScalar.cpp View 1 chunk +4 lines, -3 lines 4 comments Download
M lib/CodeGen/CodeGenModule.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M lib/Frontend/CompilerInvocation.cpp View 2 chunks +20 lines, -6 lines 2 comments Download

Messages

Total messages: 2
chandlerc
Mostly style nits. =] Once addressed, LGTM. http://codereview.appspot.com/6114059/diff/1/lib/CodeGen/CGClass.cpp File lib/CodeGen/CGClass.cpp (right): http://codereview.appspot.com/6114059/diff/1/lib/CodeGen/CGClass.cpp#newcode1231 lib/CodeGen/CGClass.cpp:1231: CodeGenOptions::LimitedDebugInfo) { ...
12 years ago (2012-04-26 17:10:54 UTC) #1
samsonov
12 years ago (2012-04-27 07:25:03 UTC) #2
Commited as r155697, thank you!

http://codereview.appspot.com/6114059/diff/1/lib/CodeGen/CGClass.cpp
File lib/CodeGen/CGClass.cpp (right):

http://codereview.appspot.com/6114059/diff/1/lib/CodeGen/CGClass.cpp#newcode1231
lib/CodeGen/CGClass.cpp:1231: CodeGenOptions::LimitedDebugInfo) {
On 2012/04/26 17:10:54, chandlerc wrote:
> Style nit: wrap this in parens if you want unusual indentation like this...

Done (moved CGM.getCodeGenOpts()... to next line).

http://codereview.appspot.com/6114059/diff/1/lib/CodeGen/CGExprScalar.cpp
File lib/CodeGen/CGExprScalar.cpp (right):

http://codereview.appspot.com/6114059/diff/1/lib/CodeGen/CGExprScalar.cpp#new...
lib/CodeGen/CGExprScalar.cpp:805: CodeGenOptions::LimitedDebugInfo) {
On 2012/04/26 17:10:54, chandlerc wrote:
> Same comment here.

ditto

http://codereview.appspot.com/6114059/diff/1/lib/CodeGen/CGExprScalar.cpp#new...
lib/CodeGen/CGExprScalar.cpp:809:
DI->getOrCreateRecordType(PTy->getPointeeType(),
On 2012/04/26 17:10:54, chandlerc wrote:
> Please try to avoid trimming trailing whitespace from lines you're not
> changing... I only see the two here in this file, but wanted to mention it for
> future reference.

Ack.

http://codereview.appspot.com/6114059/diff/1/lib/Frontend/CompilerInvocation.cpp
File lib/Frontend/CompilerInvocation.cpp (right):

http://codereview.appspot.com/6114059/diff/1/lib/Frontend/CompilerInvocation....
lib/Frontend/CompilerInvocation.cpp:1100: Args.hasArg(OPT_flimit_debug_info))
On 2012/04/26 17:10:54, chandlerc wrote:
> There is a helper designed for this pattern: Args.hasFlag

Done.
Sign in to reply to this message.

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