This patch removes the empty coverage mapping regions.
Those regions were produced by clang's old mapping region generation
algorithm, but the new algorithm doesn't generate them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213981
91177308-0d34-0410-b5e6-
96231b3b80d8
/// such as for a macro instantiation or #include file.
ExpansionRegion,
- /// \brief An EmptyRegion represents a source range without code,
- /// but with a distinct counter.
- EmptyRegion,
-
/// \brief A SkippedRegion represents a source range with code that
/// was skipped by a preprocessor or similar means.
SkippedRegion
case CounterMappingRegion::CodeRegion:
// Don't do anything when we have a code region with a zero counter.
break;
- case CounterMappingRegion::EmptyRegion:
- Kind = CounterMappingRegion::EmptyRegion;
- break;
case CounterMappingRegion::SkippedRegion:
Kind = CounterMappingRegion::SkippedRegion;
break;
encodeULEB128(EncodedTagExpandedFileID, OS);
break;
}
- case CounterMappingRegion::EmptyRegion:
- encodeULEB128(unsigned(I.Kind)
- << Counter::EncodingCounterTagAndExpansionRegionTagBits,
- OS);
- break;
case CounterMappingRegion::SkippedRegion:
assert(Count.isZero());
encodeULEB128(unsigned(I.Kind)