InstrProf: Make CounterMappingRegions less confusing to construct
authorJustin Bogner <mail@justinbogner.com>
Tue, 3 Feb 2015 23:59:33 +0000 (23:59 +0000)
committerJustin Bogner <mail@justinbogner.com>
Tue, 3 Feb 2015 23:59:33 +0000 (23:59 +0000)
commit26b3142d34a99bef59d2670d3fdc10c36c8c3384
tree418a950e252e3dd0af9d0152ab213c35e08930cb
parent879d18bf4ed46c2f5dc6e86fbf9a4e337bcaa4d3
InstrProf: Make CounterMappingRegions less confusing to construct

Creating empty and expansion regions is awkward with the current API.
Expose static methods to make this simpler.

llvm-svn: 228075
llvm/include/llvm/ProfileData/CoverageMapping.h
llvm/lib/ProfileData/CoverageMappingReader.cpp