| OLD | NEW |
| 1 //===- MCAsmLayout.h - Assembly Layout Object -------------------*- C++ -*-===// | 1 //===- MCAsmLayout.h - Assembly Layout Object -------------------*- C++ -*-===// |
| 2 // | 2 // |
| 3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 | 9 |
| 10 #ifndef LLVM_MC_MCASMLAYOUT_H | 10 #ifndef LLVM_MC_MCASMLAYOUT_H |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 MCAsmLayout(MCAssembler &_Assembler); | 52 MCAsmLayout(MCAssembler &_Assembler); |
| 53 | 53 |
| 54 /// Get the assembler object this is a layout for. | 54 /// Get the assembler object this is a layout for. |
| 55 MCAssembler &getAssembler() const { return Assembler; } | 55 MCAssembler &getAssembler() const { return Assembler; } |
| 56 | 56 |
| 57 /// \brief Update the layout because a fragment has been resized. The | 57 /// \brief Update the layout because a fragment has been resized. The |
| 58 /// fragments size should have already been updated, the \arg SlideAmount is | 58 /// fragments size should have already been updated, the \arg SlideAmount is |
| 59 /// the delta from the old size. | 59 /// the delta from the old size. |
| 60 void UpdateForSlide(MCFragment *F, int SlideAmount); | 60 void UpdateForSlide(MCFragment *F, int SlideAmount); |
| 61 | 61 |
| 62 /// \brief Update the layout because a fragment has been replaced. | 62 /// \brief Update the layout, replacing Src with Dst. The contents |
| 63 void FragmentReplaced(MCFragment *Src, MCFragment *Dst); | 63 /// of Src and Dst are not modified, and must be copied by the caller. |
| 64 /// Src will be removed from the layout, but not deleted. |
| 65 void ReplaceFragment(MCFragment *Src, MCFragment *Dst); |
| 66 |
| 67 /// \brief Update the layout to coalesce Src into Dst. The contents |
| 68 /// of Src and Dst are not modified, and must be coalesced by the caller. |
| 69 /// Src will be removed from the layout, but not deleted. |
| 70 void CoalesceFragments(MCFragment *Src, MCFragment *Dst); |
| 64 | 71 |
| 65 /// \brief Perform a full layout. | 72 /// \brief Perform a full layout. |
| 66 void LayoutFile(); | 73 void LayoutFile(); |
| 67 | 74 |
| 68 /// \brief Perform layout for a single fragment, assuming that the previous | 75 /// \brief Perform layout for a single fragment, assuming that the previous |
| 69 /// fragment has already been layed out correctly, and the parent section has | 76 /// fragment has already been layed out correctly, and the parent section has |
| 70 /// been initialized. | 77 /// been initialized. |
| 71 void LayoutFragment(MCFragment *Fragment); | 78 void LayoutFragment(MCFragment *Fragment); |
| 72 | 79 |
| 73 /// \brief Performs initial layout for a single section, assuming that the | 80 /// \brief Performs initial layout for a single section, assuming that the |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 /// \brief Get the address of the given symbol, as computed in the current | 133 /// \brief Get the address of the given symbol, as computed in the current |
| 127 /// layout. | 134 /// layout. |
| 128 uint64_t getSymbolAddress(const MCSymbolData *SD) const; | 135 uint64_t getSymbolAddress(const MCSymbolData *SD) const; |
| 129 | 136 |
| 130 /// @} | 137 /// @} |
| 131 }; | 138 }; |
| 132 | 139 |
| 133 } // end namespace llvm | 140 } // end namespace llvm |
| 134 | 141 |
| 135 #endif | 142 #endif |
| OLD | NEW |