summaryrefslogtreecommitdiff
path: root/include/llvm/MC/MCAsmLayout.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-03-25 02:00:02 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-03-25 02:00:02 +0000
commit432cd5fd9b4c97f1e4a53fcf45e16f7dd6bc085e (patch)
tree114057830fc55aeb3b5211c7d752faee23e6b845 /include/llvm/MC/MCAsmLayout.h
parent4750cb9da91fc24584953075c912cf5448d58231 (diff)
downloadllvm-432cd5fd9b4c97f1e4a53fcf45e16f7dd6bc085e.tar.gz
llvm-432cd5fd9b4c97f1e4a53fcf45e16f7dd6bc085e.tar.bz2
llvm-432cd5fd9b4c97f1e4a53fcf45e16f7dd6bc085e.tar.xz
MC: Route access to Fragment offset and effective size through MCAsmLayout.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99473 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCAsmLayout.h')
-rw-r--r--include/llvm/MC/MCAsmLayout.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/MC/MCAsmLayout.h b/include/llvm/MC/MCAsmLayout.h
index 2c26ff0296..9b9cdf2c8d 100644
--- a/include/llvm/MC/MCAsmLayout.h
+++ b/include/llvm/MC/MCAsmLayout.h
@@ -35,6 +35,12 @@ public:
uint64_t getFragmentAddress(const MCFragment *F) const;
+ uint64_t getFragmentEffectiveSize(const MCFragment *F) const;
+ void setFragmentEffectiveSize(MCFragment *F, uint64_t Value);
+
+ uint64_t getFragmentOffset(const MCFragment *F) const;
+ void setFragmentOffset(MCFragment *F, uint64_t Value);
+
uint64_t getSectionAddress(const MCSectionData *SD) const;
uint64_t getSymbolAddress(const MCSymbolData *SD) const;