If conveniently available, return the content of the given Section.
Synopsis
Declared in <llvm/DebugInfo/DIContext.h>
virtual
bool
getLoadedSectionContents(
object::SectionRef const& Sec,
StringRef& Data) const;
Description
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.
Return Value
True if relocated section contents were provided in Data.
Parameters
Name |
Description |
Sec |
Section whose loaded contents are requested. |
Data |
Set to the relocated section bytes when available. |
Created with MrDocs