mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +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:
@@ -158,24 +158,17 @@ struct CounterMappingRegion {
|
||||
SkippedRegion
|
||||
};
|
||||
|
||||
static const unsigned EncodingHasCodeBeforeBits = 1;
|
||||
|
||||
Counter Count;
|
||||
unsigned FileID, ExpandedFileID;
|
||||
unsigned LineStart, ColumnStart, LineEnd, ColumnEnd;
|
||||
RegionKind Kind;
|
||||
/// \brief A flag that is set to true when there is already code before
|
||||
/// this region on the same line.
|
||||
/// This is useful to accurately compute the execution counts for a line.
|
||||
bool HasCodeBefore;
|
||||
|
||||
CounterMappingRegion(Counter Count, unsigned FileID, unsigned LineStart,
|
||||
unsigned ColumnStart, unsigned LineEnd,
|
||||
unsigned ColumnEnd, bool HasCodeBefore = false,
|
||||
RegionKind Kind = CodeRegion)
|
||||
unsigned ColumnEnd, RegionKind Kind = CodeRegion)
|
||||
: Count(Count), FileID(FileID), ExpandedFileID(0), LineStart(LineStart),
|
||||
ColumnStart(ColumnStart), LineEnd(LineEnd), ColumnEnd(ColumnEnd),
|
||||
Kind(Kind), HasCodeBefore(HasCodeBefore) {}
|
||||
Kind(Kind) {}
|
||||
|
||||
inline std::pair<unsigned, unsigned> startLoc() const {
|
||||
return std::pair<unsigned, unsigned>(LineStart, ColumnStart);
|
||||
|
Reference in New Issue
Block a user