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)
commit8d1daf644b73430ef077b13e94ac4ef78abbe238
tree8a9ea311771be4751f3c55f548b9aa3ae74334ba
parent2fa118d2579066986d0679d54532472309159819
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.

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