use getSymbolOffset.

llvm-svn: 121041
This commit is contained in:
Rafael Espindola 2010-12-06 21:51:55 +00:00
parent 4dc53e37d9
commit e134b08daa
1 changed files with 1 additions and 1 deletions

View File

@ -598,7 +598,7 @@ public:
// Add the local offset, if needed.
if (Base != &SD)
Value += Layout.getSymbolAddress(&SD) - Layout.getSymbolAddress(Base);
Value += Layout.getSymbolOffset(&SD) - Layout.getSymbolOffset(Base);
} else if (Symbol->isInSection()) {
// The index is the section ordinal (1-based).
Index = SD.getFragment()->getParent()->getOrdinal() + 1;