aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/MC/MCAssembler.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-03-25 18:16:42 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-03-25 18:16:42 +0000
commitf476b00f51c98d12dda1f3a7c8455f8d74812c6d (patch)
tree2e5f48f991f2974ceae024d918f0343f944c824c /include/llvm/MC/MCAssembler.h
parentbe644a38c09bd0fa03bb07f48f2c1dec32052de8 (diff)
downloadexternal_llvm-f476b00f51c98d12dda1f3a7c8455f8d74812c6d.zip
external_llvm-f476b00f51c98d12dda1f3a7c8455f8d74812c6d.tar.gz
external_llvm-f476b00f51c98d12dda1f3a7c8455f8d74812c6d.tar.bz2
MC: Simplify main section layout process by moving alignment into LayoutSection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99529 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCAssembler.h')
-rw-r--r--include/llvm/MC/MCAssembler.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/llvm/MC/MCAssembler.h b/include/llvm/MC/MCAssembler.h
index 9ded5db..bdcc1bf 100644
--- a/include/llvm/MC/MCAssembler.h
+++ b/include/llvm/MC/MCAssembler.h
@@ -654,8 +654,11 @@ private:
/// 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.
- void LayoutSection(MCSectionData &SD, MCAsmLayout &Layout,
- uint64_t StartAddress);
+ ///
+ /// \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);
/// LayoutOnce - Perform one layout iteration and return true if any offsets
/// were adjusted.