Handle archives with paths in the names.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 18 Dec 2015 16:07:17 +0000 (16:07 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 18 Dec 2015 16:07:17 +0000 (16:07 +0000)
commitec08d99feee1ebbc5176d01e1c6cb021ade1eb37
treeb3b365b83f63184626cd6b7926db50cd93a8eddd
parent7ba635bae3f76f8b83c578ec54dd1f79b4d63fda
Handle archives with paths in the names.

We always create archives with just he filename as the member name, but
other archives can put a more complicated path in there.

This patches handles it by computing just the filename as we do when
adding a new member.

If storing the path is important for some reason, we should probably
have an orthogonal option for doing that and do it for both old and new
members.

Fixes pr25877.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256001 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Object/ArchiveWriter.cpp
test/Object/Inputs/pr25877.lib [new file with mode: 0644]
test/Object/pr25877.test [new file with mode: 0644]