[Coverage] Refactor coverage mapping reader code /NFC
authorXinliang David Li <davidxl@google.com>
Wed, 13 Jan 2016 00:53:46 +0000 (00:53 +0000)
committerXinliang David Li <davidxl@google.com>
Wed, 13 Jan 2016 00:53:46 +0000 (00:53 +0000)
commit2c77694774b1f4b2bdbf4cd8bd21b3adba0af01a
tree36de1e32a09dacd28027537b3eb77d85b061c665
parent99220ce3fcf5ba196b6e9838c5717bcc9caa741d
[Coverage] Refactor coverage mapping reader code /NFC

(Resubmit after fixing build bot failures)

In this refactoring, member functions are introduced to access
CovMap header/func record members and hide layout details. This
will enable further code restructuring to support reading multiple
versions of coverage mapping data with shared/templatized code.
(When coveremap format version changes, backward compatibtility
should be preserved).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257551 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ProfileData/CoverageMapping.h
lib/ProfileData/CoverageMappingReader.cpp