LLVM 22.0.0git
llvm::RuntimeDyld::LoadedObjectInfo Class Referenceabstract

Information about the loaded object. More...

#include "llvm/ExecutionEngine/RuntimeDyld.h"

Inheritance diagram for llvm::RuntimeDyld::LoadedObjectInfo:
[legend]

Public Types

using ObjSectionToIDMap = std::map<object::SectionRef, unsigned>

Public Member Functions

 LoadedObjectInfo (RuntimeDyldImpl &RTDyld, ObjSectionToIDMap ObjSecToIDMap)
virtual object::OwningBinary< object::ObjectFilegetObjectForDebug (const object::ObjectFile &Obj) const =0
uint64_t getSectionLoadAddress (const object::SectionRef &Sec) const override
 Obtain the Load Address of a section by SectionRef.
Public Member Functions inherited from llvm::LoadedObjectInfo
virtual ~LoadedObjectInfo ()=default
virtual bool getLoadedSectionContents (const object::SectionRef &Sec, StringRef &Data) const
 If conveniently available, return the content of the given Section.
virtual std::unique_ptr< LoadedObjectInfoclone () const =0
 Obtain a copy of this LoadedObjectInfo.

Protected Member Functions

virtual void anchor ()
Protected Member Functions inherited from llvm::LoadedObjectInfo
 LoadedObjectInfo ()=default
 LoadedObjectInfo (const LoadedObjectInfo &)=default

Protected Attributes

RuntimeDyldImplRTDyld
ObjSectionToIDMap ObjSecToIDMap

Friends

class RuntimeDyldImpl

Detailed Description

Information about the loaded object.

Definition at line 70 of file RuntimeDyld.h.

Member Typedef Documentation

◆ ObjSectionToIDMap

Constructor & Destructor Documentation

◆ LoadedObjectInfo()

llvm::RuntimeDyld::LoadedObjectInfo::LoadedObjectInfo ( RuntimeDyldImpl & RTDyld,
ObjSectionToIDMap ObjSecToIDMap )
inline

Definition at line 76 of file RuntimeDyld.h.

References llvm::move(), ObjSecToIDMap, RTDyld, and RuntimeDyldImpl.

Member Function Documentation

◆ anchor()

void RuntimeDyld::LoadedObjectInfo::anchor ( )
protectedvirtual

Definition at line 70 of file RuntimeDyld.cpp.

Referenced by getObjectForDebug().

◆ getObjectForDebug()

virtual object::OwningBinary< object::ObjectFile > llvm::RuntimeDyld::LoadedObjectInfo::getObjectForDebug ( const object::ObjectFile & Obj) const
pure virtual

◆ getSectionLoadAddress()

uint64_t llvm::RuntimeDyld::LoadedObjectInfo::getSectionLoadAddress ( const object::SectionRef & Sec) const
overridevirtual

Obtain the Load Address of a section by SectionRef.

Calculate the address of the given section. The section need not be present in the local address space. The addresses need to be consistent with the addresses used to query the DIContext and the output of this function should be deterministic, i.e. repeated calls with the same Sec should give the same address.

Reimplemented from llvm::LoadedObjectInfo.

Definition at line 1287 of file RuntimeDyld.cpp.

References I, ObjSecToIDMap, and RTDyld.

Referenced by getObjectForDebug().

◆ RuntimeDyldImpl

friend class RuntimeDyldImpl
friend

Definition at line 71 of file RuntimeDyld.h.

References RuntimeDyldImpl.

Referenced by LoadedObjectInfo(), and RuntimeDyldImpl.

Member Data Documentation

◆ ObjSecToIDMap

ObjSectionToIDMap llvm::RuntimeDyld::LoadedObjectInfo::ObjSecToIDMap
protected

Definition at line 89 of file RuntimeDyld.h.

Referenced by getSectionLoadAddress(), and LoadedObjectInfo().

◆ RTDyld

RuntimeDyldImpl& llvm::RuntimeDyld::LoadedObjectInfo::RTDyld
protected

Definition at line 88 of file RuntimeDyld.h.

Referenced by getSectionLoadAddress(), and LoadedObjectInfo().


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