|
LLVM
5.0.0
|
#include "llvm/DebugInfo/DWARF/DWARFDebugLine.h"
Public Types | |
| using | RowVector = std::vector< Row > |
| using | RowIter = RowVector::const_iterator |
| using | SequenceVector = std::vector< Sequence > |
| using | SequenceIter = SequenceVector::const_iterator |
Public Member Functions | |
| LineTable () | |
| void | appendRow (const DWARFDebugLine::Row &R) |
| void | appendSequence (const DWARFDebugLine::Sequence &S) |
| uint32_t | lookupAddress (uint64_t Address) const |
| Returns the index of the row with file/line info for a given address, or UnknownRowIndex if there is no such row. More... | |
| bool | lookupAddressRange (uint64_t Address, uint64_t Size, std::vector< uint32_t > &Result) const |
| bool | hasFileAtIndex (uint64_t FileIndex) const |
| bool | getFileNameByIndex (uint64_t FileIndex, const char *CompDir, DILineInfoSpecifier::FileLineInfoKind Kind, std::string &Result) const |
| Extracts filename by its index in filename table in prologue. More... | |
| bool | getFileLineInfoForAddress (uint64_t Address, const char *CompDir, DILineInfoSpecifier::FileLineInfoKind Kind, DILineInfo &Result) const |
| Fills the Result argument with the file and line information corresponding to Address. More... | |
| void | dump (raw_ostream &OS) const |
| void | clear () |
| bool | parse (const DWARFDataExtractor &DebugLineData, uint32_t *OffsetPtr) |
| Parse prologue and all rows. More... | |
Public Attributes | |
| const uint32_t | UnknownRowIndex = UINT32_MAX |
| Represents an invalid row. More... | |
| struct Prologue | Prologue |
| RowVector | Rows |
| SequenceVector | Sequences |
Definition at line 183 of file DWARFDebugLine.h.
| using llvm::DWARFDebugLine::LineTable::RowIter = RowVector::const_iterator |
Definition at line 223 of file DWARFDebugLine.h.
| using llvm::DWARFDebugLine::LineTable::RowVector = std::vector<Row> |
Definition at line 222 of file DWARFDebugLine.h.
| using llvm::DWARFDebugLine::LineTable::SequenceIter = SequenceVector::const_iterator |
Definition at line 225 of file DWARFDebugLine.h.
| using llvm::DWARFDebugLine::LineTable::SequenceVector = std::vector<Sequence> |
Definition at line 224 of file DWARFDebugLine.h.
| DWARFDebugLine::LineTable::LineTable | ( | ) |
Definition at line 325 of file DWARFDebugLine.cpp.
References clear().
|
inline |
Definition at line 189 of file DWARFDebugLine.h.
References Rows.
|
inline |
Definition at line 191 of file DWARFDebugLine.h.
References Sequences.
| void DWARFDebugLine::LineTable::clear | ( | ) |
Definition at line 339 of file DWARFDebugLine.cpp.
References llvm::DWARFDebugLine::Prologue::clear().
Referenced by llvm::DWARFContext::dump().
| void DWARFDebugLine::LineTable::dump | ( | raw_ostream & | OS | ) | const |
Definition at line 327 of file DWARFDebugLine.cpp.
References llvm::DWARFDebugLine::Prologue::dump().
Referenced by llvm::DWARFContext::dump().
| bool DWARFDebugLine::LineTable::getFileLineInfoForAddress | ( | uint64_t | Address, |
| const char * | CompDir, | ||
| DILineInfoSpecifier::FileLineInfoKind | Kind, | ||
| DILineInfo & | Result | ||
| ) | const |
Fills the Result argument with the file and line information corresponding to Address.
Returns true on success.
Definition at line 806 of file DWARFDebugLine.cpp.
References llvm::DILineInfo::Column, llvm::DWARFDebugLine::Row::Column, llvm::DILineInfo::Discriminator, llvm::DWARFDebugLine::Row::Discriminator, llvm::DWARFDebugLine::Row::File, llvm::DILineInfo::FileName, llvm::DILineInfo::Line, and llvm::DWARFDebugLine::Row::Line.
Referenced by llvm::DWARFContext::getInliningInfoForAddress().
| bool DWARFDebugLine::LineTable::getFileNameByIndex | ( | uint64_t | FileIndex, |
| const char * | CompDir, | ||
| DILineInfoSpecifier::FileLineInfoKind | Kind, | ||
| std::string & | Result | ||
| ) | const |
Extracts filename by its index in filename table in prologue.
Returns true on success.
Definition at line 771 of file DWARFDebugLine.cpp.
References llvm::sys::path::append(), llvm::DWARFDebugLine::FileNameEntry::DirIdx, llvm::DWARFDebugLine::Prologue::FileNames, if(), llvm::DWARFDebugLine::Prologue::IncludeDirectories, llvm::sys::path::is_absolute(), llvm::sys::path::is_relative(), llvm::DWARFDebugLine::FileNameEntry::Name, llvm::None, and llvm::SmallString< InternalLen >::str().
Referenced by llvm::DWARFContext::getInliningInfoForAddress(), and llvm::DWARFContext::getLineInfoForAddressRange().
| bool DWARFDebugLine::LineTable::hasFileAtIndex | ( | uint64_t | FileIndex | ) | const |
Definition at line 767 of file DWARFDebugLine.cpp.
References llvm::DWARFDebugLine::Prologue::FileNames.
| uint32_t DWARFDebugLine::LineTable::lookupAddress | ( | uint64_t | Address | ) | const |
Returns the index of the row with file/line info for a given address, or UnknownRowIndex if there is no such row.
Definition at line 693 of file DWARFDebugLine.cpp.
References llvm::dwarf::syntax::Address, llvm::DWARFDebugLine::Sequence::LowPC, and llvm::DWARFDebugLine::Sequence::orderByLowPC().
| bool DWARFDebugLine::LineTable::lookupAddressRange | ( | uint64_t | Address, |
| uint64_t | Size, | ||
| std::vector< uint32_t > & | Result | ||
| ) | const |
Definition at line 716 of file DWARFDebugLine.cpp.
References llvm::dwarf::syntax::Address, assert(), llvm::DWARFDebugLine::Sequence::FirstRowIndex, I, llvm::DWARFDebugLine::Sequence::LastRowIndex, llvm::DWARFDebugLine::Sequence::LowPC, llvm::DWARFDebugLine::Sequence::orderByLowPC(), and llvm::AMDGPU::CodeObject::Kernel::Arg::Key::Size.
Referenced by llvm::DWARFContext::getLineInfoForAddressRange().
| bool DWARFDebugLine::LineTable::parse | ( | const DWARFDataExtractor & | DebugLineData, |
| uint32_t * | OffsetPtr | ||
| ) |
Parse prologue and all rows.
Definition at line 396 of file DWARFDebugLine.cpp.
References assert(), clear(), llvm::DWARFDebugLine::FileNameEntry::DirIdx, llvm::DWARFDebugLine::Prologue::FileNames, llvm::DataExtractor::getCStr(), llvm::DWARFDataExtractor::getRelocatedAddress(), llvm::DataExtractor::getSLEB128(), llvm::DataExtractor::getU16(), llvm::DataExtractor::getU8(), llvm::DataExtractor::getULEB128(), I, llvm::DWARFDebugLine::FileNameEntry::Length, llvm::DWARFDebugLine::Prologue::LineBase, llvm::DWARFDebugLine::Prologue::LineRange, llvm::DWARFDebugLine::Prologue::MinInstLength, llvm::DWARFDebugLine::FileNameEntry::ModTime, llvm::DWARFDebugLine::FileNameEntry::Name, llvm::DWARFDebugLine::Prologue::OpcodeBase, llvm::DWARFDebugLine::Sequence::orderByLowPC(), llvm::DWARFDebugLine::Prologue::parse(), llvm::DWARFDebugLine::Prologue::sizeofTotalLength(), llvm::parallel::sort(), llvm::DWARFDebugLine::Prologue::StandardOpcodeLengths, and llvm::DWARFDebugLine::Prologue::TotalLength.
Referenced by llvm::DWARFContext::dump(), and llvm::DWARFDebugLine::getOrParseLineTable().
| struct Prologue llvm::DWARFDebugLine::LineTable::Prologue |
Definition at line 227 of file DWARFDebugLine.h.
Referenced by llvm::DWARFContext::dump().
| RowVector llvm::DWARFDebugLine::LineTable::Rows |
Definition at line 228 of file DWARFDebugLine.h.
Referenced by appendRow(), and llvm::DWARFContext::getLineInfoForAddressRange().
| SequenceVector llvm::DWARFDebugLine::LineTable::Sequences |
Definition at line 229 of file DWARFDebugLine.h.
Referenced by appendSequence().
Represents an invalid row.
Definition at line 187 of file DWARFDebugLine.h.
1.8.6