Add support for reading members out of thin archives.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 14 Jul 2015 22:18:43 +0000 (22:18 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 14 Jul 2015 22:18:43 +0000 (22:18 +0000)
commit7a6e3434ba2995d21851436b4338178f27365c24
tree5dd486e0c15595adb85da598713a2ad7a0e77778
parentd0838f887a929c2c98f85ad874cfda20d60d47e2
Add support for reading members out of thin archives.

For now the Archive owns the buffers of the thin archive members.
This makes for a simple API, but all the buffers are destructed
only when the archive is destructed. This should be fine since we
close the files after mmap so we should not hit an open file
limit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242215 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/Archive.h
lib/Object/Archive.cpp
test/Object/archive-extract.test
tools/llvm-ar/llvm-ar.cpp