Be explicit about Windows coff name trailing character policy
authorSerge Guelton <sguelton@redhat.com>
Wed, 21 Aug 2019 07:54:42 +0000 (07:54 +0000)
committerSerge Guelton <sguelton@redhat.com>
Wed, 21 Aug 2019 07:54:42 +0000 (07:54 +0000)
commitd1262a6e91d5c62120d7f5783821f12e81b079dd
tree5e3391bba887f90ce45afa3ed048318beeffd328
parent8a42af7b17cf40adab5760a43d1afb819a820a75
Be explicit about Windows coff name trailing character policy

It's okay to *not* copy the trailing zero of a windows section/symbol name.
This is compatible with strncpy behavior but gcc doesn't know that and
throws an invalid warning. Encode this behavior in a proper function.

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

llvm-svn: 369501
llvm/lib/Object/WindowsResource.cpp