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 | b9f6ac094af12107bf538e7df27d4bddcd448657 (patch) | |
| tree | 0f1432c2b3f239cffaa08f0a22c7efff2756e068 /llvm/include | |
| parent | c90f51c00bd527970c45299df108ed0e01b055a9 (diff) | |
| download | bcm5719-llvm-b9f6ac094af12107bf538e7df27d4bddcd448657.tar.gz bcm5719-llvm-b9f6ac094af12107bf538e7df27d4bddcd448657.zip | |
MC: Move Layout{Fragment,Section} into MCAsmLayout, and add LayoutFile().
llvm-svn: 103738
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/MC/MCAsmLayout.h | 12 | ||||
| -rw-r--r-- | llvm/include/llvm/MC/MCAssembler.h | 10 |
2 files changed, 12 insertions, 10 deletions
diff --git a/llvm/include/llvm/MC/MCAsmLayout.h b/llvm/include/llvm/MC/MCAsmLayout.h index f866aab95b5..18f720ecc14 100644 --- a/llvm/include/llvm/MC/MCAsmLayout.h +++ b/llvm/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/llvm/include/llvm/MC/MCAssembler.h b/llvm/include/llvm/MC/MCAssembler.h index 6522b672d3e..78a8bb2a072 100644 --- a/llvm/include/llvm/MC/MCAssembler.h +++ b/llvm/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); |

