LLVM API Documentation
#include <ObjectImage.h>
Public Member Functions | |
ObjectImage (std::unique_ptr< ObjectBuffer > Input) | |
virtual | ~ObjectImage () |
virtual object::symbol_iterator | begin_symbols () const =0 |
virtual object::symbol_iterator | end_symbols () const =0 |
iterator_range < object::symbol_iterator > | symbols () const |
virtual object::section_iterator | begin_sections () const =0 |
virtual object::section_iterator | end_sections () const =0 |
iterator_range < object::section_iterator > | sections () const |
virtual unsigned | getArch () const =0 |
StringRef | getImageName () const |
virtual void | updateSectionAddress (const object::SectionRef &Sec, uint64_t Addr)=0 |
virtual void | updateSymbolAddress (const object::SymbolRef &Sym, uint64_t Addr)=0 |
virtual StringRef | getData () const =0 |
virtual object::ObjectFile * | getObjectFile () const =0 |
virtual void | registerWithDebugger ()=0 |
virtual void | deregisterWithDebugger ()=0 |
Protected Attributes | |
std::unique_ptr< ObjectBuffer > | Buffer |
ObjectImage - A container class that represents an ObjectFile that has been or is in the process of being loaded into memory for execution.
Definition at line 25 of file ObjectImage.h.
llvm::ObjectImage::ObjectImage | ( | std::unique_ptr< ObjectBuffer > | Input | ) | [inline] |
Definition at line 34 of file ObjectImage.h.
virtual llvm::ObjectImage::~ObjectImage | ( | ) | [inline, virtual] |
Definition at line 35 of file ObjectImage.h.
virtual object::section_iterator llvm::ObjectImage::begin_sections | ( | ) | const [pure virtual] |
Implemented in llvm::ObjectImageCommon.
Referenced by llvm::RuntimeDyldImpl::computeSectionStubBufSize(), llvm::RuntimeDyldImpl::computeTotalAllocSize(), and sections().
virtual object::symbol_iterator llvm::ObjectImage::begin_symbols | ( | ) | const [pure virtual] |
Implemented in llvm::ObjectImageCommon.
Referenced by llvm::RuntimeDyldImpl::computeTotalAllocSize(), and symbols().
virtual void llvm::ObjectImage::deregisterWithDebugger | ( | ) | [pure virtual] |
Implemented in llvm::ObjectImageCommon.
virtual object::section_iterator llvm::ObjectImage::end_sections | ( | ) | const [pure virtual] |
virtual object::symbol_iterator llvm::ObjectImage::end_symbols | ( | ) | const [pure virtual] |
Implemented in llvm::ObjectImageCommon.
Referenced by llvm::RuntimeDyldImpl::computeTotalAllocSize(), llvm::RuntimeDyldELF::processRelocationRef(), and symbols().
virtual unsigned llvm::ObjectImage::getArch | ( | ) | const [pure virtual] |
Implemented in llvm::ObjectImageCommon.
virtual StringRef llvm::ObjectImage::getData | ( | ) | const [pure virtual] |
Implemented in llvm::ObjectImageCommon.
StringRef llvm::ObjectImage::getImageName | ( | ) | const [inline] |
Definition at line 56 of file ObjectImage.h.
References Buffer.
Referenced by llvm::RuntimeDyldImpl::emitSection().
virtual object::ObjectFile* llvm::ObjectImage::getObjectFile | ( | ) | const [pure virtual] |
Implemented in llvm::ObjectImageCommon.
Referenced by llvm::RuntimeDyldMachOI386::finalizeSection(), llvm::RuntimeDyldMachOARM::finalizeSection(), llvm::RuntimeDyldMachO::getRelocationEntry(), llvm::RuntimeDyldMachO::getRelocationValueRef(), llvm::RuntimeDyldMachO::makeValueAddendPCRel(), llvm::RuntimeDyldMachOX86_64::processRelocationRef(), llvm::RuntimeDyldMachOI386::processRelocationRef(), llvm::RuntimeDyldMachOARM::processRelocationRef(), llvm::RuntimeDyldELF::processRelocationRef(), and llvm::RuntimeDyldMachOAArch64::processRelocationRef().
virtual void llvm::ObjectImage::registerWithDebugger | ( | ) | [pure virtual] |
Implemented in llvm::ObjectImageCommon.
iterator_range<object::section_iterator> llvm::ObjectImage::sections | ( | ) | const [inline] |
Definition at line 46 of file ObjectImage.h.
References begin_sections(), and end_sections().
iterator_range<object::symbol_iterator> llvm::ObjectImage::symbols | ( | ) | const [inline] |
Definition at line 39 of file ObjectImage.h.
References begin_symbols(), and end_symbols().
virtual void llvm::ObjectImage::updateSectionAddress | ( | const object::SectionRef & | Sec, |
uint64_t | Addr | ||
) | [pure virtual] |
Implemented in llvm::ObjectImageCommon.
Referenced by llvm::RuntimeDyldImpl::emitSection().
virtual void llvm::ObjectImage::updateSymbolAddress | ( | const object::SymbolRef & | Sym, |
uint64_t | Addr | ||
) | [pure virtual] |
Implemented in llvm::ObjectImageCommon.
Referenced by llvm::RuntimeDyldImpl::emitCommonSymbols().
std::unique_ptr<ObjectBuffer> llvm::ObjectImage::Buffer [protected] |
Definition at line 31 of file ObjectImage.h.
Referenced by getImageName(), and llvm::ObjectImageCommon::ObjectImageCommon().