diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-05-13 20:40:12 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-05-13 20:40:12 +0000 |
commit | b69fc044db8c193348b6611f46432bb21b3cbe90 (patch) | |
tree | 4f7905abd161727d7f31ec2b92167dc161388365 /include | |
parent | e6cd757e6800b9b94a6459ec148c0624c4f2e3c1 (diff) | |
download | llvm-b69fc044db8c193348b6611f46432bb21b3cbe90.tar.gz llvm-b69fc044db8c193348b6611f46432bb21b3cbe90.tar.bz2 llvm-b69fc044db8c193348b6611f46432bb21b3cbe90.tar.xz |
MC: Move Layout{Fragment,Section} into MCAsmLayout, and add LayoutFile().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103738 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/MC/MCAsmLayout.h | 12 | ||||
-rw-r--r-- | include/llvm/MC/MCAssembler.h | 10 |
2 files changed, 12 insertions, 10 deletions
diff --git a/include/llvm/MC/MCAsmLayout.h b/include/llvm/MC/MCAsmLayout.h index f866aab95b..18f720ecc1 100644 --- a/include/llvm/MC/MCAsmLayout.h +++ b/include/llvm/MC/MCAsmLayout.h @@ -50,6 +50,18 @@ public: /// \brief Update the layout because a fragment has been replaced. void FragmentReplaced(MCFragment *Src, MCFragment *Dst); + /// \brief Perform a full layout. + void LayoutFile(); + + /// \brief Perform layout for a single fragment, assuming that the previous + /// fragment has already been layed out correctly, and the parent section has + /// been initialized. + void LayoutFragment(MCFragment *Fragment); + + /// \brief Performs layout for a single section, assuming that the previous + /// section has already been layed out correctly. + void LayoutSection(MCSectionData *SD); + /// @name Section Access (in layout order) /// @{ diff --git a/include/llvm/MC/MCAssembler.h b/include/llvm/MC/MCAssembler.h index 6522b672d3..78a8bb2a07 100644 --- a/include/llvm/MC/MCAssembler.h +++ b/include/llvm/MC/MCAssembler.h @@ -656,16 +656,6 @@ private: 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. - void LayoutFragment(MCAsmLayout &Layout, MCFragment &Fragment); - - /// LayoutSection - Performs layout of the section referenced by the given - /// \arg SectionOrderIndex. The layout assumes that the previous section has - /// already been layed out correctly. - void LayoutSection(MCAsmLayout &Layout, unsigned SectionOrderIndex); - /// LayoutOnce - Perform one layout iteration and return true if any offsets /// were adjusted. bool LayoutOnce(MCAsmLayout &Layout); |