|
LLVM
10.0.0
|
#include "llvm/DebugInfo/DWARF/DWARFDebugLoc.h"
Public Member Functions | |
| DWARFDebugLoclists (DWARFDataExtractor Data, uint16_t Version) | |
| Error | visitLocationList (uint64_t *Offset, function_ref< bool(const DWARFLocationEntry &)> Callback) const override |
Call the user-provided callback for each entry (including the end-of-list entry) in the location list starting at Offset. More... | |
| void | dumpRange (uint64_t StartOffset, uint64_t Size, raw_ostream &OS, const MCRegisterInfo *MRI, const DWARFObject &Obj, DIDumpOptions DumpOpts) |
| Dump all location lists within the given range. More... | |
Public Member Functions inherited from llvm::DWARFLocationTable | |
| DWARFLocationTable (DWARFDataExtractor Data) | |
| virtual | ~DWARFLocationTable ()=default |
| bool | dumpLocationList (uint64_t *Offset, raw_ostream &OS, Optional< object::SectionedAddress > BaseAddr, const MCRegisterInfo *MRI, const DWARFObject &Obj, DWARFUnit *U, DIDumpOptions DumpOpts, unsigned Indent) const |
Dump the location list at the given Offset. More... | |
| Error | visitAbsoluteLocationList (uint64_t Offset, Optional< object::SectionedAddress > BaseAddr, std::function< Optional< object::SectionedAddress >(uint32_t)> LookupAddr, function_ref< bool(Expected< DWARFLocationExpression >)> Callback) const |
Protected Member Functions | |
| void | dumpRawEntry (const DWARFLocationEntry &Entry, raw_ostream &OS, unsigned Indent, DIDumpOptions DumpOpts, const DWARFObject &Obj) const override |
Additional Inherited Members | |
Protected Attributes inherited from llvm::DWARFLocationTable | |
| DWARFDataExtractor | Data |
Definition at line 120 of file DWARFDebugLoc.h.
|
inline |
Definition at line 122 of file DWARFDebugLoc.h.
References MRI, Size, and llvm::IndexedInstrProf::Version.
| void DWARFDebugLoclists::dumpRange | ( | uint64_t | StartOffset, |
| uint64_t | Size, | ||
| raw_ostream & | OS, | ||
| const MCRegisterInfo * | MRI, | ||
| const DWARFObject & | Obj, | ||
| DIDumpOptions | DumpOpts | ||
| ) |
Dump all location lists within the given range.
Definition at line 390 of file DWARFDebugLoc.cpp.
References llvm::Data, and llvm::None.
|
overrideprotectedvirtual |
Implements llvm::DWARFLocationTable.
Definition at line 344 of file DWARFDebugLoc.cpp.
References assert(), llvm::Data, llvm::StringRef::data(), llvm::DWARFFormValue::dumpAddressSection(), llvm::StringRef::empty(), llvm::format(), llvm::format_hex(), llvm::raw_ostream::indent(), llvm::DWARFLocationEntry::Kind, llvm::dwarf::LocListEncodingString(), llvm::DWARFLocationEntry::SectionIndex, llvm::DWARFLocationEntry::Value0, and llvm::DWARFLocationEntry::Value1.
|
overridevirtual |
Call the user-provided callback for each entry (including the end-of-list entry) in the location list starting at Offset.
The callback can return false to terminate the iteration early. Returns an error if it was unable to parse the entire location list correctly. Upon successful termination Offset will be updated point past the end of the list.
Implements llvm::DWARFLocationTable.
Definition at line 277 of file DWARFDebugLoc.cpp.
References C, llvm::cantFail(), llvm::Continue, llvm::createStringError(), llvm::Data, E, F(), llvm::illegal_byte_sequence, llvm::DWARFLocationEntry::Kind, llvm::DWARFLocationEntry::Loc, llvm::DWARFLocationEntry::SectionIndex, llvm::Error::success(), llvm::DataExtractor::Cursor::takeError(), llvm::DataExtractor::Cursor::tell(), llvm::DWARFLocationEntry::Value0, llvm::DWARFLocationEntry::Value1, and llvm::IndexedInstrProf::Version.
1.8.13