[llvm-commits] [PATCH] [MC] .pushsection / .popsection support

Joerg Sonnenberger joerg at britannica.bec.de
Wed Feb 9 12:28:52 PST 2011


Hi all,
attached patch is the initial support for .pushsection / .popsection.
To do this properly requires a change in the MCStreamer API. One
approach is attached. I think a better idea would be to split the
current SwitchSection() into two parts: the common code to manage
CurSection / PrevSection and a virtual function ChangeSection that gets
called if the new CurSection differs from the old one. There are a bunch
of bugs with the handling of changing to the current section again.

Joerg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: section-stack.diff
Type: text/x-diff
Size: 14255 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110209/474bdbe3/attachment.diff>


More information about the llvm-commits mailing list