[LLVMdev] Setting ELF section alignment at the Target level

Carter, Jack jcarter at mips.com
Mon Dec 17 17:55:20 PST 2012


Figured it out

If I have an MCObjectStreamer object and the MCSection object of the section in question all I need to do is

  MCObjectStreamer & MCOS = static_cast <MCObjectStreamer &>(OutStreamer);
  MCSectionData &SD =
      MCOS.getAssembler().getOrCreateSectionData(*Section);

   SD.setAlignment(4);

Jack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121218/7be67667/attachment.html>


More information about the llvm-dev mailing list