[llvm] r249922 - MC: Remove implicit ilist iterator conversions, NFC
Duncan P. N. Exon Smith via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 9 17:13:11 PDT 2015
Author: dexonsmith
Date: Fri Oct 9 19:13:11 2015
New Revision: 249922
URL: http://llvm.org/viewvc/llvm-project?rev=249922&view=rev
Log:
MC: Remove implicit ilist iterator conversions, NFC
Modified:
llvm/trunk/lib/MC/MCAssembler.cpp
llvm/trunk/lib/MC/MCMachOStreamer.cpp
llvm/trunk/lib/MC/MCObjectStreamer.cpp
llvm/trunk/lib/MC/MCSection.cpp
Modified: llvm/trunk/lib/MC/MCAssembler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCAssembler.cpp?rev=249922&r1=249921&r2=249922&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCAssembler.cpp (original)
+++ llvm/trunk/lib/MC/MCAssembler.cpp Fri Oct 9 19:13:11 2015
@@ -1095,7 +1095,7 @@ bool MCAssembler::layoutSectionOnce(MCAs
break;
}
if (RelaxedFrag && !FirstRelaxedFragment)
- FirstRelaxedFragment = I;
+ FirstRelaxedFragment = &*I;
}
if (FirstRelaxedFragment) {
Layout.invalidateFragmentsFrom(FirstRelaxedFragment);
Modified: llvm/trunk/lib/MC/MCMachOStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCMachOStreamer.cpp?rev=249922&r1=249921&r2=249922&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCMachOStreamer.cpp (original)
+++ llvm/trunk/lib/MC/MCMachOStreamer.cpp Fri Oct 9 19:13:11 2015
@@ -472,7 +472,7 @@ void MCMachOStreamer::FinishImpl() {
const MCSymbol *CurrentAtom = nullptr;
for (MCSection::iterator it2 = it->begin(), ie2 = it->end(); it2 != ie2;
++it2) {
- if (const MCSymbol *Symbol = DefiningSymbolMap.lookup(it2))
+ if (const MCSymbol *Symbol = DefiningSymbolMap.lookup(&*it2))
CurrentAtom = Symbol;
it2->setAtom(CurrentAtom);
}
Modified: llvm/trunk/lib/MC/MCObjectStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCObjectStreamer.cpp?rev=249922&r1=249921&r2=249922&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCObjectStreamer.cpp (original)
+++ llvm/trunk/lib/MC/MCObjectStreamer.cpp Fri Oct 9 19:13:11 2015
@@ -94,7 +94,7 @@ MCFragment *MCObjectStreamer::getCurrent
assert(getCurrentSectionOnly() && "No current section!");
if (CurInsertionPoint != getCurrentSectionOnly()->getFragmentList().begin())
- return std::prev(CurInsertionPoint);
+ return &*std::prev(CurInsertionPoint);
return nullptr;
}
Modified: llvm/trunk/lib/MC/MCSection.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCSection.cpp?rev=249922&r1=249921&r2=249922&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCSection.cpp (original)
+++ llvm/trunk/lib/MC/MCSection.cpp Fri Oct 9 19:13:11 2015
@@ -72,7 +72,7 @@ MCSection::getSubsectionInsertionPoint(u
if (MI == SubsectionFragmentMap.end())
IP = end();
else
- IP = MI->second;
+ IP = MI->second->getIterator();
if (!ExactMatch && Subsection != 0) {
// The GNU as documentation claims that subsections have an alignment of 4,
// although this appears not to be the case.
More information about the llvm-commits
mailing list