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

calixte via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 27 07:14:10 PDT 2018


calixte created this revision.
calixte added reviewers: marco-c, davidxl.
Herald added a subscriber: llvm-commits.

Some lines have a hit counter where they should not have one.
For example, in C++, some cleanup is adding at the end of a scope represented by a '}'.
So such a line has a hit counter where a user expects to not have one.
The goal of the patch is to add this information in DILocation which is used to get the covered lines in GCOVProfiling.cpp.
A following patch in clang will add this information when generating IR.


Repository:
  rL LLVM

https://reviews.llvm.org/D49915

Files:
  include/llvm/IR/DebugInfoMetadata.h
  include/llvm/IR/DebugLoc.h
  lib/IR/DebugLoc.cpp
  lib/Transforms/Instrumentation/GCOVProfiling.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49915.157684.patch
Type: text/x-patch
Size: 3783 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180727/3b9f5a78/attachment.bin>


More information about the llvm-commits mailing list