[llvm-ar] Implement the O modifier: display member offsets inside the archive
authorFangrui Song <maskray@google.com>
Thu, 17 Oct 2019 11:34:29 +0000 (11:34 +0000)
committerFangrui Song <maskray@google.com>
Thu, 17 Oct 2019 11:34:29 +0000 (11:34 +0000)
commita69cc92cb5083d9d9f33c19587db1cdcab742637
tree5fcf46cd2e5afa7c6fdfe2bcce08fb030c65aa12
parent9dce25a9fa953cec1b89009226cdc463166a7ad4
[llvm-ar] Implement the O modifier: display member offsets inside the archive

Since GNU ar 2.31, the 't' operation prints member offsets beside file
names if the 'O' modifier is specified. 'O' is ignored for thin
archives.

Reviewed By: gbreynoo, ruiu

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

llvm-svn: 375106
llvm/docs/CommandGuide/llvm-ar.rst
llvm/include/llvm/Object/Archive.h
llvm/test/Object/archive-thin-create.test
llvm/test/Object/archive-toc.test
llvm/tools/llvm-ar/llvm-ar.cpp