LLVM
8.0.1
|
#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 |
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 72 of file DebugLinesSubsection.cpp.
void DebugLinesSubsection::addLineAndColumnInfo | ( | uint32_t | Offset, |
const LineInfo & | Line, | ||
uint32_t | ColStart, | ||
uint32_t | ColEnd | ||
) |
Definition at line 90 of file DebugLinesSubsection.cpp.
References addLineInfo(), assert(), B, llvm::codeview::ColumnNumberEntry::EndColumn, and llvm::codeview::ColumnNumberEntry::StartColumn.
Definition at line 82 of file DebugLinesSubsection.cpp.
References B, llvm::codeview::LineNumberEntry::Flags, llvm::codeview::LineInfo::getRawData(), and llvm::codeview::LineNumberEntry::Offset.
Referenced by addLineAndColumnInfo().
|
overridevirtual |
Implements llvm::codeview::DebugSubsection.
Definition at line 138 of file DebugLinesSubsection.cpp.
References B, hasColumnInfo(), and Size.
|
inlinestatic |
Definition at line 120 of file DebugLinesSubsection.h.
References llvm::codeview::LineFragmentHeader::CodeSize, llvm::codeview::LineFragmentHeader::Flags, llvm::codeview::DebugSubsection::kind(), llvm::codeview::LF_None, llvm::codeview::Lines, llvm::codeview::LineFragmentHeader::RelocOffset, llvm::codeview::LineFragmentHeader::RelocSegment, and Size.
|
overridevirtual |
Implements llvm::codeview::DebugSubsection.
Definition at line 104 of file DebugLinesSubsection.cpp.
References assert(), B, llvm::codeview::LineBlockFragmentHeader::BlockSize, llvm::codeview::LineFragmentHeader::CodeSize, llvm::codeview::EC, llvm::codeview::LineFragmentHeader::Flags, hasColumnInfo(), llvm::codeview::LF_HaveColumns, llvm::makeArrayRef(), llvm::codeview::LineBlockFragmentHeader::NameIndex, llvm::codeview::LineBlockFragmentHeader::NumLines, llvm::codeview::LineFragmentHeader::RelocOffset, llvm::codeview::LineFragmentHeader::RelocSegment, llvm::Error::success(), llvm::BinaryStreamWriter::writeArray(), and llvm::BinaryStreamWriter::writeObject().
void DebugLinesSubsection::createBlock | ( | StringRef | FileName | ) |
Definition at line 76 of file DebugLinesSubsection.cpp.
References llvm::codeview::DebugChecksumsSubsection::mapChecksumOffset().
bool DebugLinesSubsection::hasColumnInfo | ( | ) | const |
Definition at line 159 of file DebugLinesSubsection.cpp.
References llvm::codeview::LF_HaveColumns.
Referenced by calculateSerializedSize(), and commit().
void DebugLinesSubsection::setCodeSize | ( | uint32_t | Size | ) |
Definition at line 155 of file DebugLinesSubsection.cpp.
References Size.
void DebugLinesSubsection::setFlags | ( | LineFlags | Flags | ) |
Definition at line 157 of file DebugLinesSubsection.cpp.
void DebugLinesSubsection::setRelocationAddress | ( | uint16_t | Segment, |
uint32_t | Offset | ||
) |
Definition at line 149 of file DebugLinesSubsection.cpp.