LLDB
mainline
|
Identifies a DWARF debug info entry within a given Module. More...
#include <DIERef.h>
Public Types | |
enum | Section : uint8_t { DebugInfo, DebugTypes } |
Public Member Functions | |
DIERef (llvm::Optional< uint32_t > dwo_num, Section section, dw_offset_t die_offset) | |
llvm::Optional< uint32_t > | dwo_num () const |
Section | section () const |
dw_offset_t | die_offset () const |
bool | operator< (DIERef other) const |
bool | operator== (const DIERef &rhs) const |
bool | operator!= (const DIERef &rhs) const |
void | Encode (lldb_private::DataEncoder &encoder) const |
Encode this object into a data encoder object. More... | |
Static Public Member Functions | |
static llvm::Optional< DIERef > | Decode (const lldb_private::DataExtractor &data, lldb::offset_t *offset_ptr) |
Decode a serialized version of this object from data. More... | |
Private Attributes | |
uint32_t | m_dwo_num: 30 |
uint32_t | m_dwo_num_valid: 1 |
uint32_t | m_section: 1 |
dw_offset_t | m_die_offset |
Identifies a DWARF debug info entry within a given Module.
It contains three "coordinates":
enum DIERef::Section : uint8_t |
|
inline |
|
static |
Decode a serialized version of this object from data.
data | The decoder object that references the serialized data. |
offset_ptr | A pointer that contains the offset from which the data will be decoded from that gets updated as data gets decoded. |
Definition at line 29 of file DIERef.cpp.
References lldb_private::DataExtractor::GetU32(), k_dwo_num_mask, k_dwo_num_valid_bitmask, and k_section_bitmask.
Referenced by NameToDIE::Decode().
|
inline |
Definition at line 45 of file DIERef.h.
References m_die_offset.
Referenced by NameToDIE::FindAllEntriesForUnit(), llvm::format_provider< DIERef >::format(), DWARFDebugInfo::GetDIE(), SymbolFileDWARF::GetUID(), DWARFDebugInfo::GetUnit(), and lldb_private::DWARFIndex::ReportInvalidDIERef().
|
inline |
Definition at line 37 of file DIERef.h.
References m_dwo_num, and m_dwo_num_valid.
Referenced by DIERef(), NameToDIE::FindAllEntriesForUnit(), llvm::format_provider< DIERef >::format(), SymbolFileDWARFDwo::GetDIE(), SymbolFileDWARF::GetDIE(), and operator==().
void DIERef::Encode | ( | lldb_private::DataEncoder & | encoder | ) | const |
Encode this object into a data encoder object.
This allows this object to be serialized to disk.
encoder | A data encoder object that serialized bytes will be encoded into. |
Definition at line 46 of file DIERef.cpp.
References k_dwo_num_valid_bitmask, and k_section_bitmask.
|
inline |
Definition at line 47 of file DIERef.h.
References m_die_offset, m_dwo_num, m_dwo_num_valid, and m_section.
|
inline |
Definition at line 57 of file DIERef.h.
References dwo_num(), m_die_offset, and m_section.
|
inline |
Definition at line 43 of file DIERef.h.
References m_section.
Referenced by NameToDIE::FindAllEntriesForUnit(), llvm::format_provider< DIERef >::format(), SymbolFileDWARF::GetUID(), and DWARFDebugInfo::GetUnit().
|
private |
Definition at line 92 of file DIERef.h.
Referenced by die_offset(), operator<(), and operator==().
|
private |
Definition at line 89 of file DIERef.h.
Referenced by dwo_num(), and operator<().
|
private |
Definition at line 90 of file DIERef.h.
Referenced by dwo_num(), and operator<().
|
private |
Definition at line 91 of file DIERef.h.
Referenced by operator<(), operator==(), and section().