Move the comparison function into the only place there it is used,
i.e. the call to std::stable_sort in CoverageMappingWriter::write().
Add sorting by region kinds as it is required to ensure stable order
in our tests and to simplify D23987.
Paths
| Differential D24034
[Coverage] Make sorting criteria for CounterMappingRegions local. ClosedPublic Authored by ikudrin on Aug 30 2016, 9:04 AM.
Details Summary Move the comparison function into the only place there it is used, Add sorting by region kinds as it is required to ensure stable order
Diff Detail Event Timelinevsk edited edge metadata. Comment ActionsFrom D23987:
Makes sense, this lgtm. This revision is now accepted and ready to land.Aug 30 2016, 9:48 AM Closed by commit rL280198: [Coverage] Make sorting criteria for CounterMappingRegions local. (authored by ikudrin). · Explain WhyAug 31 2016, 12:09 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 69703 include/llvm/ProfileData/Coverage/CoverageMapping.h
lib/ProfileData/Coverage/CoverageMappingWriter.cpp
|