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
--- /dev/null
+RUN: not llvm-readobj %t.blah 2>&1 | FileCheck --check-prefix=ENOENT %s
+ENOENT: {{.*}}.blah: {{[Nn]}}o such file or directory
/// @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);