[llvm-ar] Extract objects to their basename in the CWD
authorReid Kleckner <rnk@google.com>
Fri, 31 Mar 2017 21:10:53 +0000 (21:10 +0000)
committerReid Kleckner <rnk@google.com>
Fri, 31 Mar 2017 21:10:53 +0000 (21:10 +0000)
commitf6e8c4dd29d23305d284fded62bdb519c739fc0f
tree0843da298d3a328c599cd7d9ee028b0d85f2a1ed
parent0d8801f991bb475fe20044de3fe8d373e937d112
[llvm-ar] Extract objects to their basename in the CWD

This is helpful when extracting objects from archives produced by MSVC's
lib.exe, which users absolute paths to describe the archive members.

llvm-svn: 299264
llvm/test/tools/llvm-ar/Inputs/absolute-paths.lib [new file with mode: 0644]
llvm/test/tools/llvm-ar/absolute-paths.test [new file with mode: 0644]
llvm/tools/llvm-ar/llvm-ar.cpp