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:16:44 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-20 13:16:44 +0000
commit2a65c32094201fad938137cfbde654ad2820adba (patch)
treeee02dcfa359e02718c2672787e7b35b387d51b39 /llvm/tools/llvm-ar/llvm-ar.cpp
parentc16c652ca524c61e5e87b2e97e9dadd2dd83f3f0 (diff)
downloadbcm5719-llvm-2a65c32094201fad938137cfbde654ad2820adba.tar.gz
bcm5719-llvm-2a65c32094201fad938137cfbde654ad2820adba.zip
Don't include directory names in archives.
This matches the behavior of both gnu and os x versions of ar. llvm-svn: 184420
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