Add a utility diagnostic handler class, SourceMgrDiagnosticHandler, to interface...
authorRiver Riddle <riverriddle@google.com>
Thu, 9 May 2019 05:28:47 +0000 (22:28 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Sat, 11 May 2019 02:24:54 +0000 (19:24 -0700)
commit4bc23a40f4936fcce97e6c393e2e7e8fdc6f1f9c
tree610cae4b8515e9a28cfdd2e8f4747f183fea98d0
parent334d57ef41b2355de2ae4d853621bbde1fc6654d
Add a utility diagnostic handler class, SourceMgrDiagnosticHandler, to interface with llvm::SourceMgr. This lowers the barrier of entry for tools to get rich diagnostic handling when using llvm::SourceMgr.

--

PiperOrigin-RevId: 247358610
mlir/include/mlir/IR/Diagnostics.h
mlir/lib/IR/Diagnostics.cpp
mlir/tools/mlir-opt/mlir-opt.cpp