git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248096
91177308-0d34-0410-b5e6-
96231b3b80d8
ELF-X86-64-UNWIND-NEXT: Flags: [ SHF_ALLOC ]
ELF-X86-64-UNWIND-NEXT: AddressAlign: 0x0000000000000001
ELF-X86-64-UNWIND-NEXT: Content: ''
+
+RUN: not llvm-cxxdump %t.blah 2>&1 | FileCheck --check-prefix=ENOENT %s
+ENOENT: {{.*}}.blah: {{[Nn]}}o such file or directory
}
static std::error_code dumpInput(StringRef File) {
- if (File != "-" && !sys::fs::exists(File))
- return obj2yaml_error::file_not_found;
-
ErrorOr<OwningBinary<Binary>> BinaryOrErr = createBinary(File);
if (std::error_code EC = BinaryOrErr.getError())
return EC;