From 0a74a60bc4a16e7c74c614642fa8c63d99a2772c Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 15 Jul 2015 22:46:53 +0000 Subject: 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 --- llvm/lib/LibDriver/LibDriver.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/LibDriver/LibDriver.cpp') 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 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 Result = -- cgit v1.2.3