Make the Twine parameter of the current diagnostic emit functions optional. This...
authorRiver Riddle <riverriddle@google.com>
Fri, 3 May 2019 18:40:57 +0000 (11:40 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Mon, 6 May 2019 15:27:13 +0000 (08:27 -0700)
commit777e7b4f4f6b40314cd484d5fbc60cdd08d700b0
tree1d2dd548b685d63e4c05d719ceb876091c1dbbca
parentffa0246bc21f73c0de9305a9b104400936a8ce6f
Make the Twine parameter of the current diagnostic emit functions optional. This allows for the ability to exclusively use the new diagnostic interface without breaking all of the existing usages. Several diagnostics emitted in lib/IR have been updated to make use of this functionality.

--

PiperOrigin-RevId: 246546044
13 files changed:
mlir/include/mlir/IR/Diagnostics.h
mlir/include/mlir/IR/Function.h
mlir/include/mlir/IR/MLIRContext.h
mlir/include/mlir/IR/OpDefinition.h
mlir/include/mlir/IR/Operation.h
mlir/lib/IR/Attributes.cpp
mlir/lib/IR/Diagnostics.cpp
mlir/lib/IR/Dialect.cpp
mlir/lib/IR/Function.cpp
mlir/lib/IR/MLIRContext.cpp
mlir/lib/IR/Operation.cpp
mlir/lib/IR/StandardTypes.cpp
mlir/lib/IR/Types.cpp