Change the diagnostic handler to accept Diagnostic instead of location/message...
authorRiver Riddle <riverriddle@google.com>
Sat, 11 May 2019 00:47:32 +0000 (17:47 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Sat, 11 May 2019 02:30:56 +0000 (19:30 -0700)
commit85bf79851eb1030afb8179b391bcdeec82710968
tree9047b8692d9803910bdce1742c6112ce17fc6c58
parentdf5000fd314a55b3bf0f11d7a7f955863ffee3f7
Change the diagnostic handler to accept Diagnostic instead of location/message/kind. This opens the door for many more powerful use cases: fixits, colors, etc.

--

PiperOrigin-RevId: 247705673
mlir/include/mlir/IR/Diagnostics.h
mlir/lib/IR/Diagnostics.cpp
mlir/lib/Pass/Pass.cpp