diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-05-13 03:19:50 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-05-13 03:19:50 +0000 |
commit | 2661f11e4602ad017fa155f6fdcee0a4f2d1ae86 (patch) | |
tree | c1c44a4274af1a6496b45203f731bc5d019c6c02 /include/llvm/MC | |
parent | 1860e7dcfd98fb4b73c0933573195562978137ef (diff) | |
download | external_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')
-rw-r--r-- | include/llvm/MC/MCAsmLayout.h | 27 | ||||
-rw-r--r-- | include/llvm/MC/MCAssembler.h | 11 |
2 files changed, 9 insertions, 29 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; diff --git a/include/llvm/MC/MCAssembler.h b/include/llvm/MC/MCAssembler.h index 8918dbb..33fa295 100644 --- a/include/llvm/MC/MCAssembler.h +++ b/include/llvm/MC/MCAssembler.h @@ -404,17 +404,6 @@ private: /// initialized. uint64_t Address; - /// Size - The logical size of this section. This is ~0 until initialized. - uint64_t Size; - - /// AddressSize - The address space size used by this section. This is ~0 - /// until initialized. - uint64_t AddressSize; - - /// FileSize - The size of this section in the object file. This is ~0 until - /// initialized. - uint64_t FileSize; - /// HasInstructions - Whether this section has had instructions emitted into /// it. unsigned HasInstructions : 1; |