[PATCH] D37529: [codeview] omit debug locations for nested exprs unless column info enabled
Reid Kleckner via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 11 12:25:42 PDT 2017
rnk accepted this revision.
rnk added a comment.
This revision is now accepted and ready to land.
lgtm
================
Comment at: clang/lib/CodeGen/CodeGenModule.h:517
+ /// Return true if we should emit location information for nested expressions.
+ bool getNestedExpressionLocationsEnabled() const {
+ return !CodeGenOpts.EmitCodeView || CodeGenOpts.DebugColumnInfo;
----------------
I'd drop the "nested" part of this name. Statements are also nested, in a sense. A for loop is a statement, and it has child statements. This is really about expression locations vs. statement expressions.
https://reviews.llvm.org/D37529
More information about the cfe-commits
mailing list