summaryrefslogtreecommitdiff
path: root/tools/llvm-ar/llvm-ar.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-20 13:41:51 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-20 13:41:51 +0000
commit122c57c0b82d125f33d2f036a67e96339e95c402 (patch)
tree1eb1e60847829feff616f74586ea83f2181c8865 /tools/llvm-ar/llvm-ar.cpp
parent9d39cb1d6418c5a25fa74f09e593794a4c8fd4b6 (diff)
downloadllvm-122c57c0b82d125f33d2f036a67e96339e95c402.tar.gz
llvm-122c57c0b82d125f33d2f036a67e96339e95c402.tar.bz2
llvm-122c57c0b82d125f33d2f036a67e96339e95c402.tar.xz
Add r184420 back, but also handle long file names.
Original message: Don't include directory names in archives. This matches the behavior of both gnu and os x versions of ar. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184423 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-ar/llvm-ar.cpp')
-rw-r--r--tools/llvm-ar/llvm-ar.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/tools/llvm-ar/llvm-ar.cpp b/tools/llvm-ar/llvm-ar.cpp
index 36bec4206d..941b631080 100644
--- a/tools/llvm-ar/llvm-ar.cpp
+++ b/tools/llvm-ar/llvm-ar.cpp
@@ -399,14 +399,6 @@ doExtract(std::string* ErrMsg) {
if (Paths.empty() ||
(std::find(Paths.begin(), Paths.end(), I->getPath()) != Paths.end())) {
- // Make sure the intervening directories are created
- if (I->hasPath()) {
- sys::Path dirs(I->getPath());
- dirs.eraseComponent();
- if (dirs.createDirectoryOnDisk(/*create_parents=*/true, ErrMsg))
- return true;
- }
-
// Open up a file stream for writing
std::ios::openmode io_mode = std::ios::out | std::ios::trunc |
std::ios::binary;