[llvm-ar] -s: don't convert a thin archive to a regular one
authorFangrui Song <i@maskray.me>
Tue, 1 Feb 2022 17:59:51 +0000 (09:59 -0800)
committerFangrui Song <i@maskray.me>
Tue, 1 Feb 2022 17:59:51 +0000 (09:59 -0800)
commitceb9094a49134d21333150dd876fbb09a165eb3a
tree8c47f6ff46bda0e2be9db5d4ebd3365be6f2523d
parentdd6e7e0d5722d6396f8a0e94146f0b5e50dfa028
[llvm-ar] -s: don't convert a thin archive to a regular one

In binutils, ar -s and randlib don't convert a thin archive to a regular one.
This behavior makes sense and this patch ports the behavior.

Reviewed By: gbreynoo

Differential Revision: https://reviews.llvm.org/D117443
llvm/test/tools/llvm-ar/symtab.test
llvm/tools/llvm-ar/llvm-ar.cpp