aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/MC/MCAsmLayout.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/llvm/MC/MCAsmLayout.h b/include/llvm/MC/MCAsmLayout.h
index b9565ba..6feacf5 100644
--- a/include/llvm/MC/MCAsmLayout.h
+++ b/include/llvm/MC/MCAsmLayout.h
@@ -59,8 +59,15 @@ public:
/// the delta from the old size.
void UpdateForSlide(MCFragment *F, int SlideAmount);
- /// \brief Update the layout because a fragment has been replaced.
- void FragmentReplaced(MCFragment *Src, MCFragment *Dst);
+ /// \brief Update the layout, replacing Src with Dst. The contents
+ /// of Src and Dst are not modified, and must be copied by the caller.
+ /// Src will be removed from the layout, but not deleted.
+ void ReplaceFragment(MCFragment *Src, MCFragment *Dst);
+
+ /// \brief Update the layout to coalesce Src into Dst. The contents
+ /// of Src and Dst are not modified, and must be coalesced by the caller.
+ /// Src will be removed from the layout, but not deleted.
+ void CoalesceFragments(MCFragment *Src, MCFragment *Dst);
/// \brief Perform a full layout.
void LayoutFile();