COFF: Preserve section type when processing /section flag.
authorPeter Collingbourne <peter@pcc.me.uk>
Fri, 20 Apr 2018 21:23:16 +0000 (21:23 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Fri, 20 Apr 2018 21:23:16 +0000 (21:23 +0000)
commit71c7de5b7752a93c971771387be535f9793f3931
tree5578e15e4713be70e0e0affcdddb6633becb8fc4
parentd14d2e7b185ffd7fcc171ea07734ba5b7aa73d8a
COFF: Preserve section type when processing /section flag.

It turns out that we were dropping this before.

Differential Revision: https://reviews.llvm.org/D45802

llvm-svn: 330481
lld/COFF/Chunks.cpp
lld/COFF/Chunks.h
lld/COFF/Writer.cpp
lld/test/COFF/output-chars.test
lld/test/COFF/section.test