[PATCH] D18610: [Coverage] Restore the correct count value after processing a nested region in case of combined regions.

Igor Kudrin via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 19 10:02:11 PDT 2016


ikudrin updated this revision to Diff 54217.
ikudrin added a comment.

- Rebased to the top.
- Moved `sortNestedRegions` and `combineRegions` into `SegmentBuilder`.
- `buildSegments` now receives `MutableArrayRef` and performs sorting and combining regions internally.
- Some `ASSERT_EQ` was changed to `EXPECT_EQ` in the added test.


http://reviews.llvm.org/D18610

Files:
  include/llvm/ProfileData/CoverageMapping.h
  lib/ProfileData/CoverageMapping.cpp
  test/tools/llvm-cov/showTemplateInstantiations.cpp
  unittests/ProfileData/CoverageMappingTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18610.54217.patch
Type: text/x-patch
Size: 8741 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160419/8b138f0a/attachment.bin>


More information about the llvm-commits mailing list