Add r184420 back, but also handle long file names.
[oota-llvm.git] / tools / llvm-ar / llvm-ar.cpp
index 36bec4206d3b94be1655d3ee3d6f897bdd4ddd08..941b6310804d3376c40765433f47a8ff18c41e1f 100644 (file)
@@ -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;