LLVM
8.0.1
|
#include "llvm/DebugInfo/DWARF/DWARFDebugLoc.h"
Classes | |
struct | Entry |
A single location within a location list. More... | |
struct | LocationList |
A list of locations that contain one variable. More... | |
Public Member Functions | |
void | dump (raw_ostream &OS, const MCRegisterInfo *RegInfo, Optional< uint64_t > Offset) const |
Print the location lists found within the debug_loc section. More... | |
void | parse (const DWARFDataExtractor &data) |
Parse the debug_loc section accessible via the 'data' parameter using the address size also given in 'data' to interpret the address ranges. More... | |
LocationList const * | getLocationListAtOffset (uint64_t Offset) const |
Return the location list at the given offset or nullptr. More... | |
Optional< LocationList > | parseOneLocationList (DWARFDataExtractor Data, uint32_t *Offset) |
Definition at line 24 of file DWARFDebugLoc.h.
void DWARFDebugLoc::dump | ( | raw_ostream & | OS, |
const MCRegisterInfo * | RegInfo, | ||
Optional< uint64_t > | Offset | ||
) | const |
Print the location lists found within the debug_loc section.
Definition at line 68 of file DWARFDebugLoc.cpp.
References llvm::format(), and getLocationListAtOffset().
Referenced by llvm::DWARFContext::dump().
DWARFDebugLoc::LocationList const * DWARFDebugLoc::getLocationListAtOffset | ( | uint64_t | Offset | ) | const |
Return the location list at the given offset or nullptr.
Definition at line 59 of file DWARFDebugLoc.cpp.
References llvm::lower_bound(), and llvm::DWARFDebugLoc::LocationList::Offset.
Referenced by dump(), and llvm::DWARFDebugLoclists::dump().
void DWARFDebugLoc::parse | ( | const DWARFDataExtractor & | data | ) |
Parse the debug_loc section accessible via the 'data' parameter using the address size also given in 'data' to interpret the address ranges.
Definition at line 132 of file DWARFDebugLoc.cpp.
References llvm::WithColor::error(), llvm::DataExtractor::getAddressSize(), llvm::DataExtractor::isLittleEndian(), llvm::DataExtractor::isValidOffset(), llvm::DWARFDebugLoc::LocationList::Offset, and parseOneLocationList().
Optional< DWARFDebugLoc::LocationList > DWARFDebugLoc::parseOneLocationList | ( | DWARFDataExtractor | Data, |
uint32_t * | Offset | ||
) |
Definition at line 88 of file DWARFDebugLoc.cpp.
References llvm::DWARFDebugLoc::Entry::Begin, llvm::copy(), E, llvm::DWARFDebugLoc::Entry::End, llvm::DWARFDebugLoc::LocationList::Entries, llvm::WithColor::error(), llvm::DataExtractor::getAddressSize(), llvm::DataExtractor::getData(), llvm::DWARFDataExtractor::getRelocatedAddress(), llvm::DataExtractor::getU16(), llvm::DataExtractor::isValidOffsetForDataOfSize(), llvm::DWARFDebugLoc::Entry::Loc, llvm::None, llvm::DWARFDebugLoc::LocationList::Offset, llvm::SmallVectorImpl< T >::reserve(), llvm::StringRef::size(), and llvm::StringRef::substr().
Referenced by dumpLocation(), parse(), and llvm::DWARFDebugLoclists::parse().