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:
parent
f5d7f9cafd
commit
15bb1703a1
5
test/Object/ar-error.test
Normal file
5
test/Object/ar-error.test
Normal 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
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user