For new archive member we only need to store the full path.

We were storing both the path and the file name, which was redundant
and easy to get confused up with.

llvm-svn: 242347
This commit is contained in:
Rafael Espindola
2015-07-15 22:46:53 +00:00
parent e2d03448ba
commit 0a74a60bc4
4 changed files with 13 additions and 18 deletions

View File

@@ -135,8 +135,7 @@ int llvm::libDriverMain(llvm::ArrayRef<const char*> ArgsArr) {
llvm::errs() << Arg->getValue() << ": no such file or directory\n";
return 1;
}
Members.emplace_back(Saver.save(*Path),
llvm::sys::path::filename(Arg->getValue()));
Members.emplace_back(Saver.save(*Path));
}
std::pair<StringRef, std::error_code> Result =