diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-07-15 22:46:53 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-07-15 22:46:53 +0000 |
commit | ba7661d2946d1603cf32dcce9cd82ce948b83c62 (patch) | |
tree | af3ea7ad2d34fd95ecc23c9366b442791745fe68 /lib/LibDriver | |
parent | c2fa6d64b4d3d48e1a639f351f252e778b26ba9c (diff) | |
download | llvm-ba7661d2946d1603cf32dcce9cd82ce948b83c62.tar.gz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242347 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/LibDriver')
-rw-r--r-- | lib/LibDriver/LibDriver.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/LibDriver/LibDriver.cpp b/lib/LibDriver/LibDriver.cpp index 981487502040..17680e3b3bb0 100644 --- a/lib/LibDriver/LibDriver.cpp +++ b/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 = |