llvm-project/mlir/tools/mlir-opt
Lei Zhang ac5a50e1e4 Extract openInputFile() into Support/FileUtilities
Multiple binaries have the needs to open input files. Use this function
to de-duplicate the code.

Also changed openOutputFile() to return errors using std::string since
it is a library call and accessing I/O in library call is not friendly.

PiperOrigin-RevId: 228878221
2019-03-29 15:09:11 -07:00
..
mlir-opt.cpp Extract openInputFile() into Support/FileUtilities 2019-03-29 15:09:11 -07:00