aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/MC/MCAssembler.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-03-25 18:16:38 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-03-25 18:16:38 +0000
commitbe644a38c09bd0fa03bb07f48f2c1dec32052de8 (patch)
tree8f2ab07b9e005ef592b5ab0e8d341afb5b470d66 /include/llvm/MC/MCAssembler.h
parent352aa503faee6c58e9cdb5054cc5ec1d90c696b4 (diff)
downloadexternal_llvm-be644a38c09bd0fa03bb07f48f2c1dec32052de8.zip
external_llvm-be644a38c09bd0fa03bb07f48f2c1dec32052de8.tar.gz
external_llvm-be644a38c09bd0fa03bb07f48f2c1dec32052de8.tar.bz2
MC: Sink Section address assignment into LayoutSection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99528 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCAssembler.h')
-rw-r--r--include/llvm/MC/MCAssembler.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/llvm/MC/MCAssembler.h b/include/llvm/MC/MCAssembler.h
index c34132d..9ded5db 100644
--- a/include/llvm/MC/MCAssembler.h
+++ b/include/llvm/MC/MCAssembler.h
@@ -651,10 +651,11 @@ private:
bool FragmentNeedsRelaxation(const MCInstFragment *IF,
const MCAsmLayout &Layout) const;
- /// LayoutSection - Assign offsets and sizes to the fragments in the section
- /// \arg SD, and update the section size. The section file offset should
- /// already have been computed.
- void LayoutSection(MCSectionData &SD, MCAsmLayout &Layout);
+ /// 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);
/// LayoutOnce - Perform one layout iteration and return true if any offsets
/// were adjusted.