[mlir] Move diagnostic handlers instead of copying
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 21 May 2022 11:25:24 +0000 (13:25 +0200)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 21 May 2022 11:25:24 +0000 (13:25 +0200)
commit295d032762ad284068c72cc1904680a4db5e80d3
treed3ea8d3a7b697a35aaeb37604d1c875ac6ff6ac5
parentc312f025940d79b858166b80c50526558864d54e
[mlir] Move diagnostic handlers instead of copying

This also allows using unique_ptr instead of shared_ptr for the CAPI
user data. NFCI.
mlir/include/mlir/IR/Diagnostics.h
mlir/lib/CAPI/IR/Diagnostics.cpp
mlir/lib/IR/Diagnostics.cpp