[PECOFF] Simplify WriterPECOFF.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@196762 91177308-0d34-0410-b5e6-96231b3b80d8
[PECOFF] Simplify PE/COFF header writer.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@196767 91177308-0d34-0410-b5e6-96231b3b80d8
Fix a copy/paste error.


git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@196770 91177308-0d34-0410-b5e6-96231b3b80d8
Revert "Remove makeArrayRef() calls."

This reverts commit r196475 because it made the build to fail with
GCC 4.7/4.8/4.9. Reported by Mikael Lyngvig.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@196853 91177308-0d34-0410-b5e6-96231b3b80d8