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
This commit is contained in:
Daniel Dunbar
2010-03-25 02:00:02 +00:00
parent 4750cb9da9
commit 432cd5fd9b
4 changed files with 69 additions and 56 deletions

View File

@@ -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;