[flang] Adapt mlir based error status handling in `tco` tool
authorSourabh Singh Tomar <SourabhSingh.Tomar@amd.com>
Thu, 4 Feb 2021 19:25:22 +0000 (00:55 +0530)
committerSourabh Singh Tomar <SourabhSingh.Tomar@amd.com>
Fri, 5 Feb 2021 05:37:10 +0000 (11:07 +0530)
commitbca0619a1bcad0d2be9f03ae5f768a64f48b1b8a
tree00bf3f6217ec99ca8344077647bb61a5eefc7e10
parentfb74e1e78a27bae55a48d98010f84afa38530f5c
[flang] Adapt mlir based error status handling in `tco` tool

Earlier scheme was using negative integers for communicating error status,
switch to canonical MLIR style.

f18 commit authored by @schweitz:
https://github.com/flang-compiler/f18-llvm-project/commit/c1af08d6e70b66c08ee2fbf2e63c764ec2e006e5

Reviewed By: mehdi_amini, clementval, svedanayagam

Differential Revision: https://reviews.llvm.org/D96068
flang/tools/tco/tco.cpp