summaryrefslogtreecommitdiffstats
path: root/include/llvm/MC/MCAssembler.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-05-13 18:35:06 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-05-13 18:35:06 +0000
commit2c18d3b0fec25b2b7befc7ac5751e84005f4a869 (patch)
treeb15dccdcb869b6e3d93d69ac60e91078609d38f7 /include/llvm/MC/MCAssembler.h
parentf1fd2288f36b58b8979761ba09e2a398c6afd110 (diff)
downloadexternal_llvm-2c18d3b0fec25b2b7befc7ac5751e84005f4a869.zip
external_llvm-2c18d3b0fec25b2b7befc7ac5751e84005f4a869.tar.gz
external_llvm-2c18d3b0fec25b2b7befc7ac5751e84005f4a869.tar.bz2
MC: Factor out MCAssembler::ComputeFragmentSize.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103724 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCAssembler.h')
-rw-r--r--include/llvm/MC/MCAssembler.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/MC/MCAssembler.h b/include/llvm/MC/MCAssembler.h
index 095b174..6522b67 100644
--- a/include/llvm/MC/MCAssembler.h
+++ b/include/llvm/MC/MCAssembler.h
@@ -650,6 +650,12 @@ private:
bool FragmentNeedsRelaxation(const MCInstFragment *IF,
const MCAsmLayout &Layout) const;
+ /// Compute the effective fragment size assuming it is layed out at the given
+ /// \arg SectionAddress and \arg FragmentOffset.
+ uint64_t ComputeFragmentSize(MCAsmLayout &Layout, const MCFragment &F,
+ uint64_t SectionAddress,
+ uint64_t FragmentOffset) const;
+
/// LayoutFragment - Performs layout of the given \arg Fragment; assuming that
/// the previous fragment has already been layed out correctly, and the parent
/// section has been initialized.