[AIX] fixed llvm-ar can not read empty big archive correctly.
authorzhijian <zhijian@ca.ibm.com>
Mon, 16 May 2022 18:29:37 +0000 (14:29 -0400)
committerzhijian <zhijian@ca.ibm.com>
Mon, 16 May 2022 18:29:37 +0000 (14:29 -0400)
commit52c615553cd9f774c618ff26507606a1469b40f3
tree7e5bd2fff9698596b6f0785b98ba5765b6ada519
parent332b73fe12c6b383168e03eddd92020d38bc7583
[AIX] fixed llvm-ar can not read empty big archive correctly.

Summary:

llvm-ar can not read empty big archive correctly. it output error as
error: unable to load 'empty.a': truncated or malformed archive (characters in size field in archive member header are not all decimal numbers: '<bigaf>'

Reviewers: James Henderson
Differential Revision: https://reviews.llvm.org/D124017
llvm/include/llvm/Object/Archive.h
llvm/test/tools/llvm-ar/display-empty.test
llvm/test/tools/llvm-ar/full-path-option.test
llvm/test/tools/llvm-ar/quick-append.test
llvm/test/tools/llvm-lipo/create-archive-input.test
llvm/test/tools/llvm-size/archive.test