summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit789c129a9fe75bf2f3bf53df636f8fdde93573b2 (patch)
tree990e78f9cb45d08e2032ffcbc257a7211f0737ae /llvm/tools/llvm-ar/llvm-ar.cpp
parent5e6b9eccce9f500069cdb957ef8100ff1b234230 (diff)
downloadbcm5719-llvm-789c129a9fe75bf2f3bf53df636f8fdde93573b2.tar.gz
bcm5719-llvm-789c129a9fe75bf2f3bf53df636f8fdde93573b2.zip
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. llvm-svn: 184423
Diffstat (limited to 'llvm/tools/llvm-ar/llvm-ar.cpp')
-rw-r--r--llvm/tools/llvm-ar/llvm-ar.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/tools/llvm-ar/llvm-ar.cpp b/llvm/tools/llvm-ar/llvm-ar.cpp
index 36bec4206d3..941b6310804 100644
--- a/llvm/tools/llvm-ar/llvm-ar.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud