MC: Emit COFF section flags in the "proper" order
authorDavid Majnemer <david.majnemer@gmail.com>
Sat, 7 Feb 2015 08:26:40 +0000 (08:26 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sat, 7 Feb 2015 08:26:40 +0000 (08:26 +0000)
commit5614ea9aae25fc763d184ee4b940eac27f5ec3a7
tree7cf8614df3f529e145578c12614956b264041a63
parentc94234c11cce3e6ff99b77d2505e9a9cb4ef0c98
MC: Emit COFF section flags in the "proper" order

COFF section flags are not idempotent:
  'rd' will make a read-write section because 'd' implies write
  'dr' will make a read-only section because 'r' disables write

llvm-svn: 228490
19 files changed:
llvm/lib/MC/MCSectionCOFF.cpp
llvm/test/CodeGen/ARM/Windows/read-only-data.ll
llvm/test/CodeGen/ARM/Windows/structors.ll
llvm/test/CodeGen/X86/coff-comdat.ll
llvm/test/CodeGen/X86/dllexport-x86_64.ll
llvm/test/CodeGen/X86/dllexport.ll
llvm/test/CodeGen/X86/global-sections.ll
llvm/test/CodeGen/X86/win_cst_pool.ll
llvm/test/DebugInfo/COFF/asm.ll
llvm/test/DebugInfo/COFF/multifile.ll
llvm/test/DebugInfo/COFF/multifunction.ll
llvm/test/DebugInfo/COFF/simple.ll
llvm/test/DebugInfo/COFF/tail-call-without-lexical-scopes.ll
llvm/test/DebugInfo/X86/coff_debug_info_type.ll
llvm/test/MC/COFF/bss_section.ll
llvm/test/MC/COFF/const-gv-with-rel-init.ll
llvm/test/MC/COFF/global_ctors_dtors.ll
llvm/test/MC/COFF/initialised-data.ll
llvm/test/MC/COFF/section-passthru-flags.s