Handle the error of trying to convert a regular archive to a thin one.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 15 Jul 2015 20:45:56 +0000 (20:45 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 15 Jul 2015 20:45:56 +0000 (20:45 +0000)
commit449208d95b9418306e1250429211e056f9af2940
tree710a82d74d58cdf8a1439d0c7b82f31e9790431d
parent47bfc19f29eb0abda912915432d8b3f9d116882c
Handle the error of trying to convert a regular archive to a thin one.

While at it, test that we can add to a thin archive.

llvm-svn: 242330
llvm/include/llvm/Object/Archive.h
llvm/lib/Object/ArchiveWriter.cpp
llvm/test/Object/archive-update.test
llvm/tools/llvm-ar/llvm-ar.cpp