Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1949)

Unified Diff: include/llvm/MC/MCAsmLayout.h

Issue 5119002: Reuse data fragments while lowering (Closed) Base URL: http://llvm.org/svn/llvm-project/llvm/trunk/
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/MC/MCAssembler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/llvm/MC/MCAsmLayout.h
===================================================================
--- include/llvm/MC/MCAsmLayout.h (revision 119741)
+++ include/llvm/MC/MCAsmLayout.h (working copy)
@@ -59,9 +59,16 @@
/// 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();
« no previous file with comments | « no previous file | lib/MC/MCAssembler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698