mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Replace a few more MachO only uses of getSymbolAddress.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241365 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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());
|
||||
|
Reference in New Issue
Block a user