diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2024-02-13 17:40:51 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-13 17:40:51 +0900 |
commit | f0db35b93f31ea5d6ff9bd4791fb6755b5a5bb9b (patch) | |
tree | 98c80ae314e4d690b7e1fde5b635abfeb0cb7ab5 /llvm/unittests/ProfileData/CoverageMappingTest.cpp | |
parent | 815a84655262ac569db11357fef1651f3571e7ee (diff) | |
download | llvm-f0db35b93f31ea5d6ff9bd4791fb6755b5a5bb9b.zip llvm-f0db35b93f31ea5d6ff9bd4791fb6755b5a5bb9b.tar.gz llvm-f0db35b93f31ea5d6ff9bd4791fb6755b5a5bb9b.tar.bz2 |
[MC/DC] Refactor: Introduce `MCDCTypes.h` for `coverage::mcdc` (#81459)
They can be also used in `clang`.
Introduce the lightweight header instead of `CoverageMapping.h`.
This includes for now:
* `mcdc::ConditionID`
* `mcdc::Parameters`
Diffstat (limited to 'llvm/unittests/ProfileData/CoverageMappingTest.cpp')
-rw-r--r-- | llvm/unittests/ProfileData/CoverageMappingTest.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/unittests/ProfileData/CoverageMappingTest.cpp b/llvm/unittests/ProfileData/CoverageMappingTest.cpp index 2849781..d60312b 100644 --- a/llvm/unittests/ProfileData/CoverageMappingTest.cpp +++ b/llvm/unittests/ProfileData/CoverageMappingTest.cpp @@ -197,8 +197,7 @@ struct CoverageMappingTest : ::testing::TestWithParam<std::tuple<bool, bool>> { auto &Regions = InputFunctions.back().Regions; unsigned FileID = getFileIndexForFunction(File); Regions.push_back(CounterMappingRegion::makeDecisionRegion( - CounterMappingRegion::MCDCParameters{Mask, NC}, FileID, LS, CS, LE, - CE)); + mcdc::Parameters{Mask, NC}, FileID, LS, CS, LE, CE)); } void addMCDCBranchCMR(Counter C1, Counter C2, unsigned ID, unsigned TrueID, @@ -207,8 +206,8 @@ struct CoverageMappingTest : ::testing::TestWithParam<std::tuple<bool, bool>> { auto &Regions = InputFunctions.back().Regions; unsigned FileID = getFileIndexForFunction(File); Regions.push_back(CounterMappingRegion::makeBranchRegion( - C1, C2, CounterMappingRegion::MCDCParameters{0, 0, ID, TrueID, FalseID}, - FileID, LS, CS, LE, CE)); + C1, C2, mcdc::Parameters{0, 0, ID, TrueID, FalseID}, FileID, LS, CS, LE, + CE)); } void addExpansionCMR(StringRef File, StringRef ExpandedFile, unsigned LS, |