diff options
author | Alan Phipps <a-phipps@ti.com> | 2023-09-20 16:31:49 -0500 |
---|---|---|
committer | Alan Phipps <a-phipps@ti.com> | 2023-09-20 16:32:34 -0500 |
commit | ab3cd075b314995f213b6ca50b6b3b4a14c051bd (patch) | |
tree | 95682c4c1e8a0f41605e5e04b948312b25607872 /llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp | |
parent | 7f3467412ed52d6749b7c53f7934c4374c6d2a00 (diff) | |
download | llvm-ab3cd075b314995f213b6ca50b6b3b4a14c051bd.zip llvm-ab3cd075b314995f213b6ca50b6b3b4a14c051bd.tar.gz llvm-ab3cd075b314995f213b6ca50b6b3b4a14c051bd.tar.bz2 |
Revert "[Coverage][llvm-cov] Enable MC/DC Support in LLVM Source-based Code Coverage (2/3)"
This reverts commit 618a22144db5e45da8c95dc22064103e1b5e5b71.
Buildbots failing on windows and one other issue.
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp')
-rw-r--r-- | llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp | 33 |
1 files changed, 3 insertions, 30 deletions
diff --git a/llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp b/llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp index 5e2340e..5c888cb 100644 --- a/llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp +++ b/llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp @@ -245,7 +245,6 @@ Error RawCoverageMappingReader::readMappingRegionsSubArray( unsigned LineStart = 0; for (size_t I = 0; I < NumRegions; ++I) { Counter C, C2; - uint64_t BIDX = 0, NC = 0, ID = 0, TID = 0, FID = 0; CounterMappingRegion::RegionKind Kind = CounterMappingRegion::CodeRegion; // Read the combined counter + region kind. @@ -296,27 +295,6 @@ Error RawCoverageMappingReader::readMappingRegionsSubArray( if (auto Err = readCounter(C2)) return Err; break; - case CounterMappingRegion::MCDCBranchRegion: - // For a MCDC Branch Region, read two successive counters and 3 IDs. - Kind = CounterMappingRegion::MCDCBranchRegion; - if (auto Err = readCounter(C)) - return Err; - if (auto Err = readCounter(C2)) - return Err; - if (auto Err = readIntMax(ID, std::numeric_limits<unsigned>::max())) - return Err; - if (auto Err = readIntMax(TID, std::numeric_limits<unsigned>::max())) - return Err; - if (auto Err = readIntMax(FID, std::numeric_limits<unsigned>::max())) - return Err; - break; - case CounterMappingRegion::MCDCDecisionRegion: - Kind = CounterMappingRegion::MCDCDecisionRegion; - if (auto Err = readIntMax(BIDX, std::numeric_limits<unsigned>::max())) - return Err; - if (auto Err = readIntMax(NC, std::numeric_limits<unsigned>::max())) - return Err; - break; default: return make_error<CoverageMapError>(coveragemap_error::malformed, "region kind is incorrect"); @@ -370,14 +348,9 @@ Error RawCoverageMappingReader::readMappingRegionsSubArray( dbgs() << "\n"; }); - auto CMR = CounterMappingRegion( - C, C2, - CounterMappingRegion::MCDCParameters{ - static_cast<unsigned>(BIDX), static_cast<unsigned>(NC), - static_cast<unsigned>(ID), static_cast<unsigned>(TID), - static_cast<unsigned>(FID)}, - InferredFileID, ExpandedFileID, LineStart, ColumnStart, - LineStart + NumLines, ColumnEnd, Kind); + auto CMR = CounterMappingRegion(C, C2, InferredFileID, ExpandedFileID, + LineStart, ColumnStart, + LineStart + NumLines, ColumnEnd, Kind); if (CMR.startLoc() > CMR.endLoc()) return make_error<CoverageMapError>( coveragemap_error::malformed, |