mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 22:20:37 +00:00
[llvm-readobj] Fix another "time of check to time of use bug".
It seems there's more copy-paste between tools than needed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247954 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5fab6109a3
commit
919b448c2e
2
test/tools/llvm-readobj/basic.test
Normal file
2
test/tools/llvm-readobj/basic.test
Normal file
@ -0,0 +1,2 @@
|
||||
RUN: not llvm-readobj %t.blah 2>&1 | FileCheck --check-prefix=ENOENT %s
|
||||
ENOENT: {{.*}}.blah: {{[Nn]}}o such file or directory
|
@ -394,11 +394,6 @@ static void dumpMachOUniversalBinary(const MachOUniversalBinary *UBinary) {
|
||||
|
||||
/// @brief Opens \a File and dumps it.
|
||||
static void dumpInput(StringRef File) {
|
||||
// If file isn't stdin, check that it exists.
|
||||
if (File != "-" && !sys::fs::exists(File)) {
|
||||
reportError(File, readobj_error::file_not_found);
|
||||
return;
|
||||
}
|
||||
|
||||
// Attempt to open the binary.
|
||||
ErrorOr<OwningBinary<Binary>> BinaryOrErr = createBinary(File);
|
||||
|
Loading…
Reference in New Issue
Block a user