19 using namespace object;
20 using namespace MachO;
30 uint64_t RelType; Rel.
getType(RelType);
33 StringRef SymName; SymI->getName(SymName);
34 uint64_t SymAddr; SymI->getAddress(SymAddr);
39 MCSymbol *Sym = Ctx.GetOrCreateSymbol(SymName);
85 "X86_64_RELOC_SUBTRACTOR.");
91 RSymI->getAddress(RSymAddr);
93 RSymI->getName(RSymName);
95 MCSymbol *RSym = Ctx.GetOrCreateSymbol(RSymName);
115 return new X86_64MachORelocationInfo(Ctx);
static const MCConstantExpr * Create(int64_t Value, MCContext &Ctx)
MachO::any_relocation_info getRelocation(DataRefImpl Rel) const
LLVM_ATTRIBUTE_NORETURN void report_fatal_error(const char *reason, bool gen_crash_diag=true)
static const MCBinaryExpr * CreateSub(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx)
static const MCSymbolRefExpr * Create(const MCSymbol *Symbol, MCContext &Ctx)
symbol_iterator getSymbol() const
virtual error_code getRelocationNext(DataRefImpl Rel, RelocationRef &Res) const
Create MCExprs from relocations found in an object file.
MCRelocationInfo * createX86_64MachORelocationInfo(MCContext &Ctx)
createX86_64MachORelocationInfo - Construct X86-64 Mach-O relocation info.
void setVariableValue(const MCExpr *Value)
unsigned getAnyRelocationPCRel(const MachO::any_relocation_info &RE) const
static const MCBinaryExpr * CreateAdd(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx)
bool isVariable() const
isVariable - Check if this is a variable symbol.
unsigned getAnyRelocationType(const MachO::any_relocation_info &RE) const
error_code getType(uint64_t &Result) const
const ObjectFile * getObjectFile() const
DataRefImpl getRawDataRefImpl() const