summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/MCTargetDesc/X86MachORelocationInfo.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-07-03 18:02:36 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-07-03 18:02:36 +0000
commite2df87f24b0af7fa80789e8da15c9cef9e6996f7 (patch)
tree25e6cf38da2f66031e512d7b32cb933d3c038e25 /llvm/lib/Target/X86/MCTargetDesc/X86MachORelocationInfo.cpp
parentdea0016f1e576d954b52e1d39fcb59ba10a05892 (diff)
downloadbcm5719-llvm-e2df87f24b0af7fa80789e8da15c9cef9e6996f7.tar.gz
bcm5719-llvm-e2df87f24b0af7fa80789e8da15c9cef9e6996f7.zip
Replace a few more MachO only uses of getSymbolAddress.
llvm-svn: 241365
Diffstat (limited to 'llvm/lib/Target/X86/MCTargetDesc/X86MachORelocationInfo.cpp')
-rw-r--r--llvm/lib/Target/X86/MCTargetDesc/X86MachORelocationInfo.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/X86/MCTargetDesc/X86MachORelocationInfo.cpp b/llvm/lib/Target/X86/MCTargetDesc/X86MachORelocationInfo.cpp
index c9479b62f7b..9bfe999424f 100644
--- a/llvm/lib/Target/X86/MCTargetDesc/X86MachORelocationInfo.cpp
+++ b/llvm/lib/Target/X86/MCTargetDesc/X86MachORelocationInfo.cpp
@@ -34,7 +34,7 @@ public:
if (std::error_code EC = SymNameOrErr.getError())
report_fatal_error(EC.message());
StringRef SymName = *SymNameOrErr;
- uint64_t SymAddr; SymI->getAddress(SymAddr);
+ uint64_t SymAddr = SymI->getValue();
any_relocation_info RE = Obj->getRelocation(Rel.getRawDataRefImpl());
bool isPCRel = Obj->getAnyRelocationPCRel(RE);
@@ -90,8 +90,7 @@ public:
const MCExpr *LHS = MCSymbolRefExpr::create(Sym, Ctx);
symbol_iterator RSymI = Rel.getSymbol();
- uint64_t RSymAddr;
- RSymI->getAddress(RSymAddr);
+ uint64_t RSymAddr = RSymI->getValue();
ErrorOr<StringRef> RSymName = RSymI->getName();
if (std::error_code EC = RSymName.getError())
report_fatal_error(EC.message());
OpenPOWER on IntegriCloud