20 using namespace object;
29 uint64_t RelType; Rel.
getType(RelType);
32 StringRef SymName; SymI->getName(SymName);
33 uint64_t SymAddr; SymI->getAddress(SymAddr);
34 uint64_t SymSize; SymI->getSize(SymSize);
37 MCSymbol *Sym = Ctx.GetOrCreateSymbol(SymName);
44 bool hasAddend =
false;
122 if (Expr && hasAddend && Addend != 0)
134 return new X86_64ELFRelocationInfo(Ctx);
static const MCConstantExpr * Create(int64_t Value, MCContext &Ctx)
MCRelocationInfo * createX86_64ELFRelocationInfo(MCContext &Ctx)
createX86_64ELFORelocationInfo - Construct X86-64 ELF relocation info.
static const MCSymbolRefExpr * Create(const MCSymbol *Symbol, MCContext &Ctx)
static error_code getELFRelocationAddend(const RelocationRef R, int64_t &Addend)
symbol_iterator getSymbol() const
Create MCExprs from relocations found in an object file.
void setVariableValue(const MCExpr *Value)
static const MCBinaryExpr * CreateAdd(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx)
bool isVariable() const
isVariable - Check if this is a variable symbol.
error_code getType(uint64_t &Result) const