diff options
Diffstat (limited to 'llvm/lib/MC/MachObjectWriter.cpp')
| -rw-r--r-- | llvm/lib/MC/MachObjectWriter.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MachObjectWriter.cpp b/llvm/lib/MC/MachObjectWriter.cpp index 6e0c4d2..d31ecef 100644 --- a/llvm/lib/MC/MachObjectWriter.cpp +++ b/llvm/lib/MC/MachObjectWriter.cpp @@ -893,7 +893,7 @@ public:          // compensate for the addend of the symbol address, if it was          // undefined. This occurs with weak definitions, for example.          if (!SD->Symbol->isUndefined()) -          FixedValue -= getSymbolAddress(SD, Layout); +          FixedValue -= Layout.getSymbolOffset(SD);        } else {          // The index is the section ordinal (1-based).          Index = SD->getFragment()->getParent()->getOrdinal() + 1;  | 
