#ifndef LLVM_RUNTIMEDYLD_OBJECT_IMAGE_H
#define LLVM_RUNTIMEDYLD_OBJECT_IMAGE_H
#include "llvm/Object/ObjectFile.h"
namespace llvm {
class ObjectImage {
ObjectImage() LLVM_DELETED_FUNCTION;
ObjectImage(const ObjectImage &other) LLVM_DELETED_FUNCTION;
protected:
object::ObjectFile *ObjFile;
public:
ObjectImage(object::ObjectFile *Obj) { ObjFile = Obj; }
virtual ~ObjectImage() {}
virtual object::symbol_iterator begin_symbols() const
{ return ObjFile->begin_symbols(); }
virtual object::symbol_iterator end_symbols() const
{ return ObjFile->end_symbols(); }
virtual object::section_iterator begin_sections() const
{ return ObjFile->begin_sections(); }
virtual object::section_iterator end_sections() const
{ return ObjFile->end_sections(); }
virtual unsigned getArch() const
{ return ObjFile->getArch(); }
virtual void updateSectionAddress(const object::SectionRef &Sec,
uint64_t Addr) {}
virtual void updateSymbolAddress(const object::SymbolRef &Sym, uint64_t Addr)
{}
virtual void registerWithDebugger() {}
virtual void deregisterWithDebugger() {}
};
}
#endif // LLVM_RUNTIMEDYLD_OBJECT_IMAGE_H