InstrProf: Make CoverageMapping testable and add a basic unit test
authorJustin Bogner <mail@justinbogner.com>
Wed, 18 Feb 2015 18:01:14 +0000 (18:01 +0000)
committerJustin Bogner <mail@justinbogner.com>
Wed, 18 Feb 2015 18:01:14 +0000 (18:01 +0000)
commit94da968134a0b0705a264ba279099083f777bf0d
tree02ba45964614275de25b12138fd586b80bb1a6e8
parent2032d755e7db0513b8ef7311febc8c5c3f2fa2b3
InstrProf: Make CoverageMapping testable and add a basic unit test

Make CoverageMapping easier to create, so that we can write targeted
unit tests for its internals, and add a some infrastructure to write
these tests. Finally, add a simple unit test for basic functionality.

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