[PATCH] MC: Add .section directive to COFF

Nico Rieck nico.rieck at gmail.com
Sat Apr 13 18:02:47 PDT 2013


Supports GAS flags "abdnrswxy" with identical result in COFF section flags. No support for alignment or subsections.

No changes to the printed flags when generating asm (there also doesn't seem to be a sane way to make these flags roundtrip).

It also doesn't accept extended ASCII like GAS does, but that's a lexer issue.

http://llvm-reviews.chandlerc.com/D666

Files:
  lib/MC/MCParser/COFFAsmParser.cpp
  test/MC/COFF/section.s
  test/MC/COFF/seh-section.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D666.1.patch
Type: text/x-patch
Size: 13012 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130413/52a443c4/attachment.bin>


More information about the llvm-commits mailing list