diff options
author | Rahul Kayaith <rkayaith@gmail.com> | 2023-02-25 02:30:46 -0500 |
---|---|---|
committer | Rahul Kayaith <rkayaith@gmail.com> | 2023-03-01 17:14:59 -0500 |
commit | f5f8a46bb0ce3dd2f3e024696d5a0aef5fb12a29 (patch) | |
tree | 49b4a08e5417e0d89192faeacb9f5fe8796a70fa /llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | |
parent | bd6eb1423c38ef14014b8ddacb42326bd9f38af4 (diff) | |
download | llvm-f5f8a46bb0ce3dd2f3e024696d5a0aef5fb12a29.zip llvm-f5f8a46bb0ce3dd2f3e024696d5a0aef5fb12a29.tar.gz llvm-f5f8a46bb0ce3dd2f3e024696d5a0aef5fb12a29.tar.bz2 |
[mlir][AsmParser] Improve parse{Attribute,Type} error handling
Currently these functions report errors directly to stderr, this updates
them to use diagnostics instead. This also makes partially-consumed
strings an error if the `numRead` parameter isn't provided (the
docstrings already claimed this happened, but it didn't.)
While here I also tried to reduce the number of overloads by switching
to using default parameters.
Reviewed By: rriddle
Differential Revision: https://reviews.llvm.org/D144804
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp')
0 files changed, 0 insertions, 0 deletions