LLVM
8.0.1
|
Helper to allow for parsing of an entire .debug_line section in sequence. More...
#include "llvm/DebugInfo/DWARF/DWARFDebugLine.h"
Public Types | |
using | cu_range = DWARFUnitVector::iterator_range |
using | tu_range = DWARFUnitVector::iterator_range |
using | LineToUnitMap = std::map< uint64_t, DWARFUnit * > |
Public Member Functions | |
SectionParser (DWARFDataExtractor &Data, const DWARFContext &C, cu_range CUs, tu_range TUs) | |
LineTable | parseNext (function_ref< void(Error)> RecoverableErrorCallback, function_ref< void(Error)> UnrecoverableErrorCallback, raw_ostream *OS=nullptr) |
Get the next line table from the section. More... | |
void | skip (function_ref< void(Error)> ErrorCallback) |
Skip the current line table and go to the following line table (if present) immediately. More... | |
bool | done () const |
Indicates if the parser has parsed as much as possible. More... | |
uint32_t | getOffset () const |
Get the offset the parser has reached. More... | |
Helper to allow for parsing of an entire .debug_line section in sequence.
Definition at line 280 of file DWARFDebugLine.h.
Definition at line 282 of file DWARFDebugLine.h.
using llvm::DWARFDebugLine::SectionParser::LineToUnitMap = std::map<uint64_t, DWARFUnit *> |
Definition at line 284 of file DWARFDebugLine.h.
Definition at line 283 of file DWARFDebugLine.h.
DWARFDebugLine::SectionParser::SectionParser | ( | DWARFDataExtractor & | Data, |
const DWARFContext & | C, | ||
cu_range | CUs, | ||
tu_range | TUs | ||
) |
Definition at line 1051 of file DWARFDebugLine.cpp.
References buildLineToUnitMap(), and llvm::DataExtractor::isValidOffset().
|
inline |
Indicates if the parser has parsed as much as possible.
Definition at line 315 of file DWARFDebugLine.h.
Referenced by llvm::DWARFContext::dump().
|
inline |
Get the offset the parser has reached.
Definition at line 318 of file DWARFDebugLine.h.
References Context, llvm::AArch64CC::LT, and P.
Referenced by llvm::DWARFContext::dump().
DWARFDebugLine::LineTable DWARFDebugLine::SectionParser::parseNext | ( | function_ref< void(Error)> | RecoverableErrorCallback, |
function_ref< void(Error)> | UnrecoverableErrorCallback, | ||
raw_ostream * | OS = nullptr |
||
) |
Get the next line table from the section.
Report any issues via the callbacks.
RecoverableErrorCallback | - any issues that don't prevent further parsing of the table will be reported through this callback. |
UnrecoverableErrorCallback | - any issues that prevent further parsing of the table will be reported through this callback. |
OS | - if not null, the parser will print information about the table as it parses it. |
Definition at line 1064 of file DWARFDebugLine.cpp.
References assert(), llvm::DataExtractor::isValidOffset(), and llvm::AArch64CC::LT.
Referenced by llvm::DWARFContext::dump().
void DWARFDebugLine::SectionParser::skip | ( | function_ref< void(Error)> | ErrorCallback | ) |
Skip the current line table and go to the following line table (if present) immediately.
ErrorCallback | - report any prologue parsing issues via this callback. |
Definition at line 1079 of file DWARFDebugLine.cpp.
References assert(), llvm::DataExtractor::isValidOffset(), and llvm::AArch64CC::LT.
Referenced by llvm::DWARFContext::dump().