summaryrefslogtreecommitdiffstats
path: root/llvm/lib/LibDriver/LibDriver.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-07-15 22:46:53 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-07-15 22:46:53 +0000
commit0a74a60bc4a16e7c74c614642fa8c63d99a2772c (patch)
tree87c5c9be23af1ea533315a84238fdd36657a8ffd /llvm/lib/LibDriver/LibDriver.cpp
parente2d03448ba7944e8f983ddd95d50a20e9433777c (diff)
downloadbcm5719-llvm-0a74a60bc4a16e7c74c614642fa8c63d99a2772c.tar.gz
bcm5719-llvm-0a74a60bc4a16e7c74c614642fa8c63d99a2772c.zip
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
Diffstat (limited to 'llvm/lib/LibDriver/LibDriver.cpp')
-rw-r--r--llvm/lib/LibDriver/LibDriver.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/LibDriver/LibDriver.cpp b/llvm/lib/LibDriver/LibDriver.cpp
index 98148750204..17680e3b3bb 100644
--- a/llvm/lib/LibDriver/LibDriver.cpp
+++ b/llvm/lib/LibDriver/LibDriver.cpp
@@ -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 =
OpenPOWER on IntegriCloud