llvm-cov: Simplify CounterMappingRegion, pushing logic to its user
authorJustin Bogner <mail@justinbogner.com>
Mon, 15 Sep 2014 03:41:01 +0000 (03:41 +0000)
committerJustin Bogner <mail@justinbogner.com>
Mon, 15 Sep 2014 03:41:01 +0000 (03:41 +0000)
commitbaca0016838d47d7c78605cdb1090f7bc11fc905
tree2e5a92d37627c05e80cbcef1c8de5a4eff53aeef
parente610c324e1a56843abdff27a1bf30d188255a23b
llvm-cov: Simplify CounterMappingRegion, pushing logic to its user

A single function in SourceCoverageDataManager was the only user of
some of the comparisons in CounterMappingRegion, and at this point we
know that only one file is relevant. This lets us use slightly simpler
logic directly in the client.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217745 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ProfileData/CoverageMapping.h
tools/llvm-cov/SourceCoverageDataManager.cpp