1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

MC: Move MCSection::begin/end to header, NFC

llvm-svn: 281188
This commit is contained in:
Duncan P. N. Exon Smith 2016-09-12 00:17:09 +00:00
parent 2306b9373b
commit 50071b93b0
2 changed files with 8 additions and 24 deletions

View File

@ -153,25 +153,17 @@ public:
const MCDummyFragment &getDummyFragment() const { return DummyFragment; }
MCDummyFragment &getDummyFragment() { return DummyFragment; }
MCSection::iterator begin();
MCSection::const_iterator begin() const {
return const_cast<MCSection *>(this)->begin();
}
iterator begin() { return Fragments.begin(); }
const_iterator begin() const { return Fragments.begin(); }
MCSection::iterator end();
MCSection::const_iterator end() const {
return const_cast<MCSection *>(this)->end();
}
iterator end() { return Fragments.end(); }
const_iterator end() const { return Fragments.end(); }
MCSection::reverse_iterator rbegin();
MCSection::const_reverse_iterator rbegin() const {
return const_cast<MCSection *>(this)->rbegin();
}
reverse_iterator rbegin() { return Fragments.rbegin(); }
const_reverse_iterator rbegin() const { return Fragments.rbegin(); }
MCSection::reverse_iterator rend();
MCSection::const_reverse_iterator rend() const {
return const_cast<MCSection *>(this)->rend();
}
reverse_iterator rend() { return Fragments.rend(); }
const_reverse_iterator rend() const { return Fragments.rend(); }
MCSection::iterator getSubsectionInsertionPoint(unsigned Subsection);

View File

@ -97,11 +97,3 @@ LLVM_DUMP_METHOD void MCSection::dump() {
}
OS << "]>";
}
MCSection::iterator MCSection::begin() { return Fragments.begin(); }
MCSection::iterator MCSection::end() { return Fragments.end(); }
MCSection::reverse_iterator MCSection::rbegin() { return Fragments.rbegin(); }
MCSection::reverse_iterator MCSection::rend() { return Fragments.rend(); }