mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-21 00:24:42 +00:00
InstrProf: Remove CoverageMapping::HasCodeBefore, it isn't used
It's not entirely clear to me what this field was meant for, but it's always false. Remove it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228034 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -172,11 +172,7 @@ void CoverageMappingWriter::write(raw_ostream &OS) {
|
||||
}
|
||||
assert(I->LineStart >= PrevLineStart);
|
||||
encodeULEB128(I->LineStart - PrevLineStart, OS);
|
||||
uint64_t CodeBeforeColumnStart =
|
||||
uint64_t(I->HasCodeBefore) |
|
||||
(uint64_t(I->ColumnStart)
|
||||
<< CounterMappingRegion::EncodingHasCodeBeforeBits);
|
||||
encodeULEB128(CodeBeforeColumnStart, OS);
|
||||
encodeULEB128(I->ColumnStart, OS);
|
||||
assert(I->LineEnd >= I->LineStart);
|
||||
encodeULEB128(I->LineEnd - I->LineStart, OS);
|
||||
encodeULEB128(I->ColumnEnd, OS);
|
||||
|
Reference in New Issue
Block a user