[MC] Delete MCSection::{rbegin,rend}

This commit is contained in:
Fangrui Song 2020-01-05 12:48:48 -08:00
parent ad0a45833b
commit 586acd8490
2 changed files with 2 additions and 8 deletions

View File

@ -175,12 +175,6 @@ public:
iterator end() { return Fragments.end(); }
const_iterator end() const { return Fragments.end(); }
reverse_iterator rbegin() { return Fragments.rbegin(); }
const_reverse_iterator rbegin() const { return Fragments.rbegin(); }
reverse_iterator rend() { return Fragments.rend(); }
const_reverse_iterator rend() const { return Fragments.rend(); }
MCSection::iterator getSubsectionInsertionPoint(unsigned Subsection);
void dump() const;

View File

@ -1169,8 +1169,8 @@ void MCAssembler::finishLayout(MCAsmLayout &Layout) {
// The layout is done. Mark every fragment as valid.
for (unsigned int i = 0, n = Layout.getSectionOrder().size(); i != n; ++i) {
MCSection &Section = *Layout.getSectionOrder()[i];
Layout.getFragmentOffset(&*Section.rbegin());
computeFragmentSize(Layout, *Section.rbegin());
Layout.getFragmentOffset(&*Section.getFragmentList().rbegin());
computeFragmentSize(Layout, *Section.getFragmentList().rbegin());
}
getBackend().finishLayout(*this, Layout);
}