aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/MC/MCAssembler.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-12-21 04:22:09 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-12-21 04:22:09 +0000
commit62b83b62f377ac248038672015dc65970327f786 (patch)
tree05dbe876b43f097179e7e225dada431baaf96285 /include/llvm/MC/MCAssembler.h
parentc19aadb8b0219462ff55f4bdc8106cebc1245bb6 (diff)
Layout one section until no relaxations are done and then move to the next
section. This helps because in practice sections form a dag with debug sections pointing to text sections. Finishing up the text sections first makes the debug section relaxation trivial. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122314 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCAssembler.h')
-rw-r--r--include/llvm/MC/MCAssembler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/MC/MCAssembler.h b/include/llvm/MC/MCAssembler.h
index 0c37189bd8..7d8bae9f37 100644
--- a/include/llvm/MC/MCAssembler.h
+++ b/include/llvm/MC/MCAssembler.h
@@ -711,6 +711,8 @@ private:
/// were adjusted.
bool LayoutOnce(MCAsmLayout &Layout);
+ bool LayoutSectionOnce(MCAsmLayout &Layout, MCSectionData &SD);
+
bool RelaxInstruction(MCAsmLayout &Layout, MCInstFragment &IF);
bool RelaxOrg(MCAsmLayout &Layout, MCOrgFragment &OF);