[LLVMdev] [llvm-commits] Fwd: Proof of concept patch for unifying the .s/ELF emission of .ARM.attributes

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Oct 21 07:50:35 PDT 2010


> Hmm, I wish we had this discussion way earlier..
>
> How would I emit things in different subsections? I can do a high
> level switch to .ARM.attributes, and if I were emitting one blob from
> begin to end, using the higher level interface would be preferable,
> but it contains additional subsections - which are naturally
> represented by MCDataFragments - Is there an MC equivalent of a
> SubSection (which is-a Section so I can switch back and forth?)
> Currently we only have stuff that go into the File subsection only,
> but.. for futureproofing?

We cross that bridge when we get there. It might be that the best
thing to do is organize the code so that  we output the subsections in
order. It might be to add some missing feature. For now using the
regular streamer API will make this code a lot easier to read.

>
> -jason

Cheers,
Rafael



More information about the llvm-dev mailing list