diff options
Diffstat (limited to 'lib/Target/X86/MCTargetDesc/X86ELFRelocationInfo.cpp')
-rw-r--r-- | lib/Target/X86/MCTargetDesc/X86ELFRelocationInfo.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/X86/MCTargetDesc/X86ELFRelocationInfo.cpp b/lib/Target/X86/MCTargetDesc/X86ELFRelocationInfo.cpp index 917c37d2ca..8f4ab4673d 100644 --- a/lib/Target/X86/MCTargetDesc/X86ELFRelocationInfo.cpp +++ b/lib/Target/X86/MCTargetDesc/X86ELFRelocationInfo.cpp @@ -27,11 +27,11 @@ public: const MCExpr *createExprForRelocation(RelocationRef Rel) { uint64_t RelType; Rel.getType(RelType); - SymbolRef SymRef; Rel.getSymbol(SymRef); + symbol_iterator SymI = Rel.getSymbol(); - StringRef SymName; SymRef.getName(SymName); - uint64_t SymAddr; SymRef.getAddress(SymAddr); - uint64_t SymSize; SymRef.getSize(SymSize); + StringRef SymName; SymI->getName(SymName); + uint64_t SymAddr; SymI->getAddress(SymAddr); + uint64_t SymSize; SymI->getSize(SymSize); int64_t Addend; getELFRelocationAddend(Rel, Addend); MCSymbol *Sym = Ctx.GetOrCreateSymbol(SymName); |