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)
commitfdac306a12f5a958b6bb6545edac695a9b4b8e15
tree65e4e1a857b38e5f3e1cbd3c0c44f5379b0beae7
parent7e940c4725759f78e8ef9a964be21c4900ab2945
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228490 91177308-0d34-0410-b5e6-96231b3b80d8
19 files changed:
lib/MC/MCSectionCOFF.cpp
test/CodeGen/ARM/Windows/read-only-data.ll
test/CodeGen/ARM/Windows/structors.ll
test/CodeGen/X86/coff-comdat.ll
test/CodeGen/X86/dllexport-x86_64.ll
test/CodeGen/X86/dllexport.ll
test/CodeGen/X86/global-sections.ll
test/CodeGen/X86/win_cst_pool.ll
test/DebugInfo/COFF/asm.ll
test/DebugInfo/COFF/multifile.ll
test/DebugInfo/COFF/multifunction.ll
test/DebugInfo/COFF/simple.ll
test/DebugInfo/COFF/tail-call-without-lexical-scopes.ll
test/DebugInfo/X86/coff_debug_info_type.ll
test/MC/COFF/bss_section.ll
test/MC/COFF/const-gv-with-rel-init.ll
test/MC/COFF/global_ctors_dtors.ll
test/MC/COFF/initialised-data.ll
test/MC/COFF/section-passthru-flags.s