diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-05-19 23:53:20 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-05-19 23:53:20 +0000 |
commit | 2a40483418370b97149ce9e87384cdd1d0b702ac (patch) | |
tree | a7a70ec4ed639b4ad6887534258249f101943f9c /llvm/lib/MC/MachObjectWriter.cpp | |
parent | c6c660b3dd60784662879dc4e236fdf066e79d10 (diff) | |
download | llvm-2a40483418370b97149ce9e87384cdd1d0b702ac.zip llvm-2a40483418370b97149ce9e87384cdd1d0b702ac.tar.gz llvm-2a40483418370b97149ce9e87384cdd1d0b702ac.tar.bz2 |
MC: Use MCSymbol in MCAsmLayout::getSymbolOffset(), NFC
Continue to canonicalize on MCSymbol instead of MCSymbolData when both
are needed.
llvm-svn: 237749
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 002aa3c..12e5a17 100644 --- a/llvm/lib/MC/MachObjectWriter.cpp +++ b/llvm/lib/MC/MachObjectWriter.cpp @@ -108,7 +108,7 @@ uint64_t MachObjectWriter::getSymbolAddress(const MCSymbolData* SD, } return getSectionAddress(SD->getFragment()->getParent()) + - Layout.getSymbolOffset(SD); + Layout.getSymbolOffset(S); } uint64_t MachObjectWriter::getPaddingSize(const MCSectionData *SD, |