Simplify createHeader and inline it.
authorRui Ueyama <ruiu@google.com>
Wed, 19 Apr 2017 11:31:58 +0000 (11:31 +0000)
committerRui Ueyama <ruiu@google.com>
Wed, 19 Apr 2017 11:31:58 +0000 (11:31 +0000)
commit066c4ab9fee4b987f01c4131d8a7502455626e8d
tree4192469797a11cecdfd30d49bea416ab14d2d59b
parent4627873807f07d8195fac4b8c8389b75c07d3c2a
Simplify createHeader and inline it.

createHeader didn't use data members of Elf_Chdr type and write
directly to a given buffer. That is not a good practice because
the function had a knowledge of the struct layout.

llvm-svn: 300674
lld/ELF/OutputSections.cpp