mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-05 17:39:16 +00:00
Another use of getSymbolOffset.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121034 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
179821ac1f
commit
f96d17b886
@ -536,10 +536,14 @@ public:
|
||||
if (A_Base == B_Base && A_Base)
|
||||
report_fatal_error("unsupported relocation with identical base");
|
||||
|
||||
Value += Layout.getSymbolAddress(&A_SD) -
|
||||
(A_Base == NULL ? 0 : Layout.getSymbolAddress(A_Base));
|
||||
Value -= Layout.getSymbolAddress(&B_SD) -
|
||||
(B_Base == NULL ? 0 : Layout.getSymbolAddress(B_Base));
|
||||
assert((A_Base == NULL) == (B_Base == NULL));
|
||||
assert(A_SD.getFragment()->getParent() ==
|
||||
B_SD.getFragment()->getParent());
|
||||
|
||||
Value += Layout.getSymbolOffset(&A_SD) -
|
||||
(A_Base == NULL ? 0 : Layout.getSymbolOffset(A_Base));
|
||||
Value -= Layout.getSymbolOffset(&B_SD) -
|
||||
(B_Base == NULL ? 0 : Layout.getSymbolOffset(B_Base));
|
||||
|
||||
if (A_Base) {
|
||||
Index = A_Base->getIndex();
|
||||
|
Loading…
x
Reference in New Issue
Block a user