MC: Remove last use of MCSymbolData::getSymbol(), NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 21 May 2015 00:39:24 +0000 (00:39 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 21 May 2015 00:39:24 +0000 (00:39 +0000)
commitaa87ff844052f02ca337c25013098e3a77208b8d
tree68e971deabc3a7b7adc3f141b57ac64d9b9954f5
parentd591505d9ffc799e92a22bc5f13e3947193da6fa
MC: Remove last use of MCSymbolData::getSymbol(), NFC

Remove the last use of `MCSymbolData::getSymbol()`.  There's some
*really* hairy stuff going on in `MachObjectWriter::WriteNList()` that I
want to come back to.  In particular, it updates `Symbol` to point at
its aliasee (if any), but leaves `Data` behind, and it's not clear
whether everything makes sense there.

For now I've left the logic unchanged by adding `OrigSymbol` and moving
the FIXME from r237750 up a bit higher.  I've filed PR23598 to track
looking into this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237867 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MachObjectWriter.cpp