class LoadedObjectInfo
Declaration
class LoadedObjectInfo { /* full declaration omitted */ };
Description
An inferface for inquiring the load address of a loaded object file to be used by the DIContext implementations when applying relocations on the fly.
Declared at: llvm/include/llvm/DebugInfo/DIContext.h:243
Method Overview
- protected LoadedObjectInfo()
- protected LoadedObjectInfo(const llvm::LoadedObjectInfo &)
- public virtual std::unique_ptr<LoadedObjectInfo> clone() const
- public virtual bool getLoadedSectionContents(const object::SectionRef & Sec, llvm::StringRef & Data) const
- public virtual uint64_t getSectionLoadAddress(const object::SectionRef & Sec) const
- public virtual ~LoadedObjectInfo()
Methods
¶LoadedObjectInfo()
LoadedObjectInfo()
Declared at: llvm/include/llvm/DebugInfo/DIContext.h:245
¶LoadedObjectInfo(const llvm::LoadedObjectInfo&)
LoadedObjectInfo(const llvm::LoadedObjectInfo&)
Declared at: llvm/include/llvm/DebugInfo/DIContext.h:246
Parameters
- const llvm::LoadedObjectInfo&
¶virtual std::unique_ptr<LoadedObjectInfo> clone()
const
virtual std::unique_ptr<LoadedObjectInfo> clone()
const
Description
Obtain a copy of this LoadedObjectInfo.
Declared at: llvm/include/llvm/DebugInfo/DIContext.h:282
¶virtual bool getLoadedSectionContents(
const object::SectionRef& Sec,
llvm::StringRef& Data) const
virtual bool getLoadedSectionContents(
const object::SectionRef& Sec,
llvm::StringRef& Data) const
Description
If conveniently available, return the content of the given Section. When the section is available in the local address space, in relocated (loaded) form, e.g. because it was relocated by a JIT for execution, this function should provide the contents of said section in `Data`. If the loaded section is not available, or the cost of retrieving it would be prohibitive, this function should return false. In that case, relocations will be read from the local (unrelocated) object file and applied on the fly. Note that this method is used purely for optimzation purposes in the common case of JITting in the local address space, so returning false should always be correct.
Declared at: llvm/include/llvm/DebugInfo/DIContext.h:273
Parameters
- const object::SectionRef& Sec
- llvm::StringRef& Data
¶virtual uint64_t getSectionLoadAddress(
const object::SectionRef& Sec) const
virtual uint64_t getSectionLoadAddress(
const object::SectionRef& Sec) const
Description
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.
Declared at: llvm/include/llvm/DebugInfo/DIContext.h:258
Parameters
- const object::SectionRef& Sec
¶virtual ~LoadedObjectInfo()
virtual ~LoadedObjectInfo()
Declared at: llvm/include/llvm/DebugInfo/DIContext.h:249