LLVM 20.0.0git
|
#include "llvm/DebugInfo/CodeView/DebugLinesSubsection.h"
Public Member Functions | |
DebugLinesSubsection (DebugChecksumsSubsection &Checksums, DebugStringTableSubsection &Strings) | |
void | createBlock (StringRef FileName) |
void | addLineInfo (uint32_t Offset, const LineInfo &Line) |
void | addLineAndColumnInfo (uint32_t Offset, const LineInfo &Line, uint32_t ColStart, uint32_t ColEnd) |
uint32_t | calculateSerializedSize () const override |
Error | commit (BinaryStreamWriter &Writer) const override |
void | setRelocationAddress (uint16_t Segment, uint32_t Offset) |
void | setCodeSize (uint32_t Size) |
void | setFlags (LineFlags Flags) |
bool | hasColumnInfo () const |
Public Member Functions inherited from llvm::codeview::DebugSubsection | |
DebugSubsection (DebugSubsectionKind Kind) | |
virtual | ~DebugSubsection () |
DebugSubsectionKind | kind () const |
virtual Error | commit (BinaryStreamWriter &Writer) const =0 |
virtual uint32_t | calculateSerializedSize () const =0 |
Static Public Member Functions | |
static bool | classof (const DebugSubsection *S) |
Static Public Member Functions inherited from llvm::codeview::DebugSubsection | |
static bool | classof (const DebugSubsection *S) |
Additional Inherited Members | |
Protected Attributes inherited from llvm::codeview::DebugSubsection | |
DebugSubsectionKind | Kind |
Definition at line 106 of file DebugLinesSubsection.h.
DebugLinesSubsection::DebugLinesSubsection | ( | DebugChecksumsSubsection & | Checksums, |
DebugStringTableSubsection & | Strings | ||
) |
Definition at line 71 of file DebugLinesSubsection.cpp.
void DebugLinesSubsection::addLineAndColumnInfo | ( | uint32_t | Offset, |
const LineInfo & | Line, | ||
uint32_t | ColStart, | ||
uint32_t | ColEnd | ||
) |
Definition at line 89 of file DebugLinesSubsection.cpp.
References addLineInfo(), assert(), B, llvm::codeview::ColumnNumberEntry::EndColumn, llvm::Offset, and llvm::codeview::ColumnNumberEntry::StartColumn.
Definition at line 81 of file DebugLinesSubsection.cpp.
References B, llvm::codeview::LineNumberEntry::Flags, llvm::codeview::LineNumberEntry::Offset, and llvm::Offset.
Referenced by addLineAndColumnInfo().
|
overridevirtual |
Implements llvm::codeview::DebugSubsection.
Definition at line 137 of file DebugLinesSubsection.cpp.
References B, hasColumnInfo(), and Size.
|
inlinestatic |
Definition at line 120 of file DebugLinesSubsection.h.
References llvm::codeview::DebugSubsection::kind(), and llvm::codeview::Lines.
|
overridevirtual |
Implements llvm::codeview::DebugSubsection.
Definition at line 103 of file DebugLinesSubsection.cpp.
References assert(), B, llvm::codeview::LineBlockFragmentHeader::BlockSize, llvm::codeview::EC, hasColumnInfo(), llvm::codeview::LF_HaveColumns, llvm::codeview::LineBlockFragmentHeader::NameIndex, llvm::codeview::LineBlockFragmentHeader::NumLines, llvm::Error::success(), llvm::BinaryStreamWriter::writeArray(), and llvm::BinaryStreamWriter::writeObject().
void DebugLinesSubsection::createBlock | ( | StringRef | FileName | ) |
Definition at line 75 of file DebugLinesSubsection.cpp.
References llvm::codeview::DebugChecksumsSubsection::mapChecksumOffset(), and llvm::Offset.
bool DebugLinesSubsection::hasColumnInfo | ( | ) | const |
Definition at line 158 of file DebugLinesSubsection.cpp.
References llvm::codeview::LF_HaveColumns.
Referenced by calculateSerializedSize(), and commit().
void DebugLinesSubsection::setCodeSize | ( | uint32_t | Size | ) |
Definition at line 154 of file DebugLinesSubsection.cpp.
References Size.
void DebugLinesSubsection::setFlags | ( | LineFlags | Flags | ) |
Definition at line 156 of file DebugLinesSubsection.cpp.
Definition at line 148 of file DebugLinesSubsection.cpp.
References llvm::Offset.