MC: Simplify LayoutSection to just take the index of the section to layout.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103627 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar
2010-05-12 17:56:47 +00:00
parent 473a09d80a
commit d13a0caf72
3 changed files with 26 additions and 31 deletions

View File

@@ -50,11 +50,12 @@ public:
/// @name Section Access (in layout order)
/// @{
iterator begin() { return SectionOrder.begin(); }
const_iterator begin() const { return SectionOrder.begin(); }
iterator end() {return SectionOrder.end();}
const_iterator end() const {return SectionOrder.end();}
llvm::SmallVectorImpl<MCSectionData*> &getSectionOrder() {
return SectionOrder;
}
const llvm::SmallVectorImpl<MCSectionData*> &getSectionOrder() const {
return SectionOrder;
}
/// @}
/// @name Fragment Layout Data