MC: Remove implicit ilist iterator conversions, NFC

llvm-svn: 249922
This commit is contained in:
Duncan P. N. Exon Smith 2015-10-10 00:13:11 +00:00
parent d90a4176ff
commit a5f45da27e
4 changed files with 4 additions and 4 deletions

View File

@ -1095,7 +1095,7 @@ bool MCAssembler::layoutSectionOnce(MCAsmLayout &Layout, MCSection &Sec) {
break;
}
if (RelaxedFrag && !FirstRelaxedFragment)
FirstRelaxedFragment = I;
FirstRelaxedFragment = &*I;
}
if (FirstRelaxedFragment) {
Layout.invalidateFragmentsFrom(FirstRelaxedFragment);

View File

@ -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);
}

View File

@ -94,7 +94,7 @@ MCFragment *MCObjectStreamer::getCurrentFragment() const {
assert(getCurrentSectionOnly() && "No current section!");
if (CurInsertionPoint != getCurrentSectionOnly()->getFragmentList().begin())
return std::prev(CurInsertionPoint);
return &*std::prev(CurInsertionPoint);
return nullptr;
}

View File

@ -72,7 +72,7 @@ MCSection::getSubsectionInsertionPoint(unsigned Subsection) {
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.