[PATCH] D49915: [IR] Add a boolean field in DILocation to know if a line must covered or not

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 1 10:57:00 PDT 2018


rnk added a comment.

In https://reviews.llvm.org/D49915#1184440, @vsk wrote:

> A caveat to this: plenty of users (and plenty of tests) expect to be able to set breakpoints on scope-closing curly braces. Assigning line 0 to those braces would at the minimum break a lot of tests, and would likely be viewed as a serious regression.


Right. The frontend should try to encode enough information that the various consumers of DILocations can decide for themselves what tables they should emit. Our line tables should probably stay as they are now, and the various code coverage and instr profiling implementations can do whatever they think is appropriate with this information. With that in mind, if we're going to grow DILocation, what we really want is probably a set of location flags, if we're going to grow DILocation.


Repository:
  rL LLVM

https://reviews.llvm.org/D49915





More information about the llvm-commits mailing list