aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/MC/MCAsmLayout.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-05-13 03:19:50 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-05-13 03:19:50 +0000
commit2661f11e4602ad017fa155f6fdcee0a4f2d1ae86 (patch)
treec1c44a4274af1a6496b45203f731bc5d019c6c02 /include/llvm/MC/MCAsmLayout.h
parent1860e7dcfd98fb4b73c0933573195562978137ef (diff)
downloadexternal_llvm-2661f11e4602ad017fa155f6fdcee0a4f2d1ae86.zip
external_llvm-2661f11e4602ad017fa155f6fdcee0a4f2d1ae86.tar.gz
external_llvm-2661f11e4602ad017fa155f6fdcee0a4f2d1ae86.tar.bz2
MC: Eliminate MCSectionData::{,Address,File}Size, which can now be computed by
utility functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103695 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCAsmLayout.h')
-rw-r--r--include/llvm/MC/MCAsmLayout.h27
1 files changed, 9 insertions, 18 deletions
diff --git a/include/llvm/MC/MCAsmLayout.h b/include/llvm/MC/MCAsmLayout.h
index 9866100..8a38247 100644
--- a/include/llvm/MC/MCAsmLayout.h
+++ b/include/llvm/MC/MCAsmLayout.h
@@ -84,35 +84,26 @@ public:
/// \brief Set the computed address of the given section.
void setSectionAddress(MCSectionData *SD, uint64_t Value);
- /// \brief Get the data size of the given section, as emitted to the object
- /// file. This may include additional padding, or be 0 for virtual sections.
- uint64_t getSectionFileSize(const MCSectionData *SD) const;
+ /// @}
+ /// @name Utility Functions
+ /// @{
- /// \brief Set the data size of the given section.
- void setSectionFileSize(MCSectionData *SD, uint64_t Value);
+ /// \brief Get the address of the given fragment, as computed in the current
+ /// layout.
+ uint64_t getFragmentAddress(const MCFragment *F) const;
/// \brief Get the address space size of the given section, as it effects
/// layout. This may differ from the size reported by \see getSectionSize() by
/// not including section tail padding.
uint64_t getSectionAddressSize(const MCSectionData *SD) const;
- /// \brief Set the address space size of the given section.
- void setSectionAddressSize(MCSectionData *SD, uint64_t Value);
+ /// \brief Get the data size of the given section, as emitted to the object
+ /// file. This may include additional padding, or be 0 for virtual sections.
+ uint64_t getSectionFileSize(const MCSectionData *SD) const;
/// \brief Get the logical data size of the given section.
uint64_t getSectionSize(const MCSectionData *SD) const;
- /// \brief Set the logical data size of the given section.
- void setSectionSize(MCSectionData *SD, uint64_t Value);
-
- /// @}
- /// @name Utility Functions
- /// @{
-
- /// \brief Get the address of the given fragment, as computed in the current
- /// layout.
- uint64_t getFragmentAddress(const MCFragment *F) const;
-
/// \brief Get the address of the given symbol, as computed in the current
/// layout.
uint64_t getSymbolAddress(const MCSymbolData *SD) const;