mirror of
https://github.com/intel/llvm.git
synced 2026-02-06 15:18:53 +08:00
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