This is a continuation of the YAML library error reporting refactoring/improvement and the idea by itself was mentioned in the following thread: https://reviews.llvm.org/D67182?id=218714#inline-603404 This performs a cleanup of all object emitters in the library. It allows using the custom one provided by the caller. One of the nice things is that each tool can now print its tool name, e.g: "yaml2obj: error: <text>" Also, the code became a bit simpler. Differential revision: https://reviews.llvm.org/D67445 llvm-svn: 371865
5 lines
213 B
Plaintext
5 lines
213 B
Plaintext
# RUN: not yaml2obj -o %p/path/does/not/exist 2>&1 | FileCheck %s
|
|
|
|
# Don't check the OS-dependent message "No such file or directory".
|
|
# CHECK: yaml2obj: error: failed to open '{{.*}}/path/does/not/exist': {{.*}}
|