10 #ifndef LLVM_DEBUGINFO_CODEVIEW_DEBUGLINESSUBSECTION_H
11 #define LLVM_DEBUGINFO_CODEVIEW_DEBUGLINESSUBSECTION_H
28 class DebugChecksumsSubsection;
29 class DebugStringTableSubsection;
103 LineInfoArray LinesAndColumns;
108 Block(
uint32_t ChecksumBufferOffset)
109 : ChecksumBufferOffset(ChecksumBufferOffset) {}
112 std::vector<LineNumberEntry>
Lines;
113 std::vector<ColumnNumberEntry> Columns;
141 uint16_t RelocSegment = 0;
144 std::vector<Block> Blocks;
150 #endif // LLVM_DEBUGINFO_CODEVIEW_DEBUGLINESSUBSECTION_H
support::ulittle32_t NameIndex
Error operator()(BinaryStreamRef Stream, uint32_t &Len, LineColumnEntry &Item)
const LineFragmentHeader * Header
support::ulittle32_t Flags
bool hasColumnInfo() const
void setRelocationAddress(uint16_t Segment, uint32_t Offset)
DebugSubsectionKind kind() const
FixedStreamArray is similar to VarStreamArray, except with each record having a fixed-length.
void addLineAndColumnInfo(uint32_t Offset, const LineInfo &Line, uint32_t ColStart, uint32_t ColEnd)
DebugSubsectionKind kind() const
FixedStreamArray< ColumnNumberEntry > Columns
DebugLinesSubsection(DebugChecksumsSubsection &Checksums, DebugStringTableSubsection &Strings)
Error commit(BinaryStreamWriter &Writer) const override
bool hasColumnInfo() const
uint32_t calculateSerializedSize() const override
static bool classof(const DebugSubsection *S)
VarStreamArrayIterator< LineColumnEntry, LineColumnExtractor > Iterator
Provides write only access to a subclass of WritableBinaryStream.
const LineFragmentHeader * header() const
void setCodeSize(uint32_t Size)
support::ulittle16_t EndColumn
void setFlags(LineFlags Flags)
void createBlock(StringRef FileName)
Represents a read-write view of a CodeView string table.
BinaryStreamRef is to BinaryStream what ArrayRef is to an Array.
DebugLinesSubsectionRef()
VarStreamArray represents an array of variable length records backed by a stream. ...
constexpr char Size[]
Key for Kernel::Arg::Metadata::mSize.
static bool classof(const DebugSubsectionRef *S)
Lightweight error class with error context and mandatory checking.
Iterator begin(bool *HadError=nullptr) const
Provides read only access to a subclass of BinaryStream.
StringRef - Represent a constant reference to a string, i.e.
Error initialize(BinaryStreamReader Reader)
FixedStreamArray< LineNumberEntry > LineNumbers
support::ulittle16_t StartColumn
void addLineInfo(uint32_t Offset, const LineInfo &Line)
support::ulittle32_t Offset