search for: getorcreatesectiondata

Displaying 3 results from an estimated 3 matches for "getorcreatesectiondata".

2012 Dec 18
0
[LLVMdev] Setting ELF section alignment at the Target level
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>
2010 Jul 16
0
[LLVMdev] Win32 COFF Support - Patch 3
...tion != 0 if you like), and use MCObjectStreamer::getCurrentSectionData() for that instead. > + bool SectionDataCreated; > + > + assert((Section != 0) || (CurSection != 0) && "Must have a valid section!"); > + > + MCSectionData *SectionData = &getAssembler().getOrCreateSectionData( > + *(Section ? Section : CurSection), > + &SectionDataCreated > + ); Please put the ); on the previous line (and in rest of file). > + > + if (SectionDataCreated) > + OnSec...
2010 Jul 14
2
[LLVMdev] Win32 COFF Support - Patch 3
On Sun, Jul 11, 2010 at 6:10 PM, Chris Lattner <clattner at apple.com> wrote: > This probably needs to be slightly tweaked to work with mainline.  I don't see anything objectionable, but I think Daniel needs to review this one. Updated patch to work with mainline. http://github.com/Bigcheese/llvm-mirror/commit/d19a4c82c18afc4830c09b70f02d162292231c94 - Michael Spencer