LLVM 20.0.0git
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
llvm::RuntimeDyld::LoadedObjectInfo Class Referenceabstract

Information about the loaded object. More...

#include "llvm/ExecutionEngine/RuntimeDyld.h"

Inheritance diagram for llvm::RuntimeDyld::LoadedObjectInfo:
Inheritance graph
[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 uint64_t getSectionLoadAddress (const object::SectionRef &Sec) const
 Obtain the Load Address of a section by SectionRef.
 
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 69 of file RuntimeDyld.h.

Member Typedef Documentation

◆ ObjSectionToIDMap

Definition at line 73 of file RuntimeDyld.h.

Constructor & Destructor Documentation

◆ LoadedObjectInfo()

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

Definition at line 75 of file RuntimeDyld.h.

Member Function Documentation

◆ anchor()

void RuntimeDyld::LoadedObjectInfo::anchor ( )
protectedvirtual

Definition at line 70 of file RuntimeDyld.cpp.

◆ 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 1272 of file RuntimeDyld.cpp.

References I.

Friends And Related Function Documentation

◆ RuntimeDyldImpl

friend class RuntimeDyldImpl
friend

Definition at line 70 of file RuntimeDyld.h.

Member Data Documentation

◆ ObjSecToIDMap

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

Definition at line 88 of file RuntimeDyld.h.

◆ RTDyld

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

Definition at line 87 of file RuntimeDyld.h.


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