[llvm-commits] [llvm] r120979 - /llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp
Rafael Espindola
rafael.espindola at gmail.com
Sun Dec 5 19:24:04 PST 2010
Author: rafael
Date: Sun Dec 5 21:24:04 2010
New Revision: 120979
URL: http://llvm.org/viewvc/llvm-project?rev=120979&view=rev
Log:
Use getSymbolOffset on the COFF writer.
Modified:
llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp
Modified: llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp?rev=120979&r1=120978&r2=120979&view=diff
==============================================================================
--- llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp Sun Dec 5 21:24:04 2010
@@ -661,7 +661,7 @@
const MCSymbol *B = &Target.getSymB()->getSymbol();
MCSymbolData &B_SD = Asm.getSymbolData(*B);
- FixedValue = Layout.getSymbolAddress(&A_SD) - Layout.getSymbolAddress(&B_SD);
+ FixedValue = Layout.getSymbolOffset(&A_SD) - Layout.getSymbolOffset(&B_SD);
// In the case where we have SymbA and SymB, we just need to store the delta
// between the two symbols. Update FixedValue to account for the delta, and
More information about the llvm-commits
mailing list