summaryrefslogtreecommitdiffstats
path: root/include/llvm/MC/MCAssembler.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/MCAssembler.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/MCAssembler.h')
-rw-r--r--include/llvm/MC/MCAssembler.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/include/llvm/MC/MCAssembler.h b/include/llvm/MC/MCAssembler.h
index 08500f8..c34c951 100644
--- a/include/llvm/MC/MCAssembler.h
+++ b/include/llvm/MC/MCAssembler.h
@@ -668,14 +668,10 @@ private:
bool FragmentNeedsRelaxation(const MCInstFragment *IF,
const MCAsmLayout &Layout) const;
- /// LayoutSection - Assign the section the given \arg StartAddress, and then
- /// assign offsets and sizes to the fragments in the section \arg SD, and
- /// update the section size.
- ///
- /// \return The address at the end of the section, for use in laying out the
- /// succeeding section.
- uint64_t LayoutSection(MCSectionData &SD, MCAsmLayout &Layout,
- uint64_t StartAddress);
+ /// LayoutSection - Performs layout of the section referenced by the given
+ /// \arg SectionOrderIndex. The layout assumes that the previous section has
+ /// already been layed out correctly.
+ void LayoutSection(MCAsmLayout &Layout, unsigned SectionOrderIndex);
/// LayoutOnce - Perform one layout iteration and return true if any offsets
/// were adjusted.