LLVM  17.0.0git
Public Member Functions | Protected Member Functions | List of all members
llvm::DWARFDebugLoclists Class Referencefinal

#include "llvm/DebugInfo/DWARF/DWARFDebugLoc.h"

Inheritance diagram for llvm::DWARFDebugLoclists:
Inheritance graph
Collaboration diagram for llvm::DWARFDebugLoclists:
Collaboration graph

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 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, std::optional< object::SectionedAddress > BaseAddr, const DWARFObject &Obj, DWARFUnit *U, DIDumpOptions DumpOpts, unsigned Indent) const
 Dump the location list at the given Offset. More...
Error visitAbsoluteLocationList (uint64_t Offset, std::optional< object::SectionedAddress > BaseAddr, std::function< std::optional< object::SectionedAddress >(uint32_t)> LookupAddr, function_ref< bool(Expected< DWARFLocationExpression >)> Callback) const
const DWARFDataExtractorgetData ()

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

Detailed Description

Definition at line 124 of file DWARFDebugLoc.h.

Constructor & Destructor Documentation

◆ DWARFDebugLoclists()

llvm::DWARFDebugLoclists::DWARFDebugLoclists ( DWARFDataExtractor  Data,
uint16_t  Version 

Definition at line 126 of file DWARFDebugLoc.h.

Member Function Documentation

◆ dumpRange()

void DWARFDebugLoclists::dumpRange ( uint64_t  StartOffset,
uint64_t  Size,
raw_ostream OS,
const DWARFObject Obj,
DIDumpOptions  DumpOpts 

◆ dumpRawEntry()

void DWARFDebugLoclists::dumpRawEntry ( const DWARFLocationEntry Entry,
raw_ostream OS,
unsigned  Indent,
DIDumpOptions  DumpOpts,
const DWARFObject Obj 
) const

Implements llvm::DWARFLocationTable.

Definition at line 341 of file DWARFDebugLoc.cpp.

◆ visitLocationList()

Error DWARFDebugLoclists::visitLocationList ( uint64_t Offset,
function_ref< bool(const DWARFLocationEntry &)>  Callback 
) const

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 274 of file DWARFDebugLoc.cpp.

References llvm::cantFail(), llvm::createStringError(), llvm::DWARFLocationTable::Data, E, F, llvm::DWARFDataExtractor::getRelocatedAddress(), llvm::DataExtractor::getU16(), llvm::DataExtractor::getU32(), llvm::DataExtractor::getU8(), llvm::DataExtractor::getULEB128(), llvm::illegal_byte_sequence, llvm::Offset, and llvm::Error::success().

The documentation for this class was generated from the following files: