diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-05-16 00:48:58 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-05-16 00:48:58 +0000 |
commit | 09bfa58edd62af6ecbf1ea5177e27e55ab782160 (patch) | |
tree | 755ced1155cc5b92085dbe060e70e3e4ab2513dc /llvm/lib/MC/MCMachOStreamer.cpp | |
parent | f48de1cb7b1c3c59011f9d3d34e00bcf8ca29b01 (diff) | |
download | llvm-09bfa58edd62af6ecbf1ea5177e27e55ab782160.zip llvm-09bfa58edd62af6ecbf1ea5177e27e55ab782160.tar.gz llvm-09bfa58edd62af6ecbf1ea5177e27e55ab782160.tar.bz2 |
MC: Change MCFragment::Atom to an MCSymbol, NFC
Change `MCFragment::Atom` from an `MCSymbolData` to an `MCSymbol`,
moving in the direction of removing the back-pointer.
llvm-svn: 237497
Diffstat (limited to 'llvm/lib/MC/MCMachOStreamer.cpp')
-rw-r--r-- | llvm/lib/MC/MCMachOStreamer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCMachOStreamer.cpp b/llvm/lib/MC/MCMachOStreamer.cpp index ee3f358..b381e578 100644 --- a/llvm/lib/MC/MCMachOStreamer.cpp +++ b/llvm/lib/MC/MCMachOStreamer.cpp @@ -478,11 +478,11 @@ void MCMachOStreamer::FinishImpl() { // symbol. for (MCAssembler::iterator it = getAssembler().begin(), ie = getAssembler().end(); it != ie; ++it) { - MCSymbolData *CurrentAtom = nullptr; + const MCSymbol *CurrentAtom = nullptr; for (MCSectionData::iterator it2 = it->begin(), ie2 = it->end(); it2 != ie2; ++it2) { if (MCSymbolData *SD = DefiningSymbolMap.lookup(it2)) - CurrentAtom = SD; + CurrentAtom = &SD->getSymbol(); it2->setAtom(CurrentAtom); } } |