aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/MC/MCAsmLayout.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-05-12 17:56:47 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-05-12 17:56:47 +0000
commitd13a0caf726e05c9bd939d752ef371d6d467ef28 (patch)
tree1bfb82f96164582416f1d2920c4ab2b919af3f91 /include/llvm/MC/MCAsmLayout.h
parent473a09d80a8d3ecb37ac0d01289c79f7cc4fc645 (diff)
downloadexternal_llvm-d13a0caf726e05c9bd939d752ef371d6d467ef28.zip
external_llvm-d13a0caf726e05c9bd939d752ef371d6d467ef28.tar.gz
external_llvm-d13a0caf726e05c9bd939d752ef371d6d467ef28.tar.bz2
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
Diffstat (limited to 'include/llvm/MC/MCAsmLayout.h')
-rw-r--r--include/llvm/MC/MCAsmLayout.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/llvm/MC/MCAsmLayout.h b/include/llvm/MC/MCAsmLayout.h
index bfd177d..c4492a6 100644
--- a/include/llvm/MC/MCAsmLayout.h
+++ b/include/llvm/MC/MCAsmLayout.h
@@ -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