Change the error message when `-split-input-file` is used with mlir-opt to make it...
authorMehdi Amini <joker.eph@gmail.com>
Sat, 27 Feb 2021 18:32:21 +0000 (18:32 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Sat, 27 Feb 2021 18:32:34 +0000 (18:32 +0000)
commita6d76cf6101d0479af2d9c9266427c0ea51e3889
tree9b56063b5a3d321e1449382821bc39b4d6d235f6
parent2da13f1246e1f458d0d9eb716913616eb05f698d
Change the error message when `-split-input-file` is used with mlir-opt to make it recognizable by IDEs

By adding the line number of the split point immediately after the file
name (separated by `:`) this is recognized by various tool as a proper
location.

Ideally we would want to point to the line of the error, but that would
require some very invasive changes I suspect.

Reviewed By: jpienaar

Differential Revision: https://reviews.llvm.org/D93363
mlir/lib/Support/ToolUtilities.cpp