mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-19 19:31:50 +00:00
llvm-ar: Output the file we errored on.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209500 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1ed412cb72
commit
f97e200a98
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