1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

llvm-ar: Output the file we errored on.

llvm-svn: 209500
This commit is contained in:
Filipe Cabecinhas 2014-05-23 05:52:12 +00:00
parent f5d7f9cafd
commit 15bb1703a1
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
Test if we get a proper error with a filename that doesn't exist
RUN: not llvm-ar r %t.out.a sparkle.o %t 2>&1 | FileCheck %s
CHECK: llvm-ar{{(.exe|.EXE)?}}: sparkle.o: No such file or directory

View File

@ -516,7 +516,7 @@ computeInsertAction(ArchiveOperation Operation,
// We could try to optimize this to a fstat, but it is not a common
// operation.
sys::fs::file_status Status;
failIfError(sys::fs::status(*MI, Status));
failIfError(sys::fs::status(*MI, Status), *MI);
if (Status.getLastModificationTime() < I->getLastModified()) {
if (PosName.empty())
return IA_AddOldMember;