diff options
author | George Rimar <grimar@accesssoftek.com> | 2019-09-13 16:00:16 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2019-09-13 16:00:16 +0000 |
commit | 850110272783e85bc79d9fad64add5d303a23ad1 (patch) | |
tree | aa900898c68a57f1ccb06d2aeb297b10373e6622 /llvm/lib/Support/VirtualFileSystem.cpp | |
parent | 7b81a13bfcd1d92f478109f1c87971dafba639d2 (diff) | |
download | llvm-850110272783e85bc79d9fad64add5d303a23ad1.zip llvm-850110272783e85bc79d9fad64add5d303a23ad1.tar.gz llvm-850110272783e85bc79d9fad64add5d303a23ad1.tar.bz2 |
[yaml2obj/ObjectYAML] - Cleanup the error reporting API, add custom errors handlers.
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
Diffstat (limited to 'llvm/lib/Support/VirtualFileSystem.cpp')
0 files changed, 0 insertions, 0 deletions