diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-20 13:16:44 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-20 13:16:44 +0000 |
commit | be984d6376bf42f9e05fb660b44808cffe9711a8 (patch) | |
tree | 8b3fb0a308675e677010c8b7f851d8cb8c03f2cf /tools/llvm-ar/llvm-ar.cpp | |
parent | 6f2c88a08b30e9e22d71ed7d7abb89bbcc9d1629 (diff) | |
download | external_llvm-be984d6376bf42f9e05fb660b44808cffe9711a8.zip external_llvm-be984d6376bf42f9e05fb660b44808cffe9711a8.tar.gz external_llvm-be984d6376bf42f9e05fb660b44808cffe9711a8.tar.bz2 |
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@184420 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-ar/llvm-ar.cpp')
-rw-r--r-- | tools/llvm-ar/llvm-ar.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/tools/llvm-ar/llvm-ar.cpp b/tools/llvm-ar/llvm-ar.cpp index 36bec42..941b631 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; |