Lines Matching refs:EC
229 static void error(std::error_code EC, const Twine &Prefix) {
230 if (EC)
231 error(Prefix + ": " + EC.message());
300 std::error_code EC;
302 raw_fd_ostream OS(OutputFilename + ".thinlto.bc", EC,
304 error(EC, "error opening the file '" + OutputFilename + ".thinlto.bc'");
334 if (std::error_code EC = llvm::sys::fs::create_directories(ParentPath))
335 error(EC, "error creating the directory '" + ParentPath + "'");
385 std::error_code EC;
386 raw_fd_ostream OS(Filename, EC, sys::fs::OpenFlags::F_None);
387 error(EC, "error opening the file '" + Filename + "'");
449 std::error_code EC;
450 raw_fd_ostream OS(OutputFilename, EC, sys::fs::OpenFlags::F_None);
451 error(EC, "error opening the file '" + OutputFilename + "'");
483 std::error_code EC;
484 raw_fd_ostream OS(OutputName, EC, sys::fs::OpenFlags::F_None);
485 error(EC, "error opening the file '" + OutputName + "'");
647 std::error_code EC;
648 raw_fd_ostream OS(OutputName, EC, sys::fs::OpenFlags::F_None);
649 error(EC, "error opening the file '" + OutputName + "'");
684 std::error_code EC;
685 raw_fd_ostream OS(OutputName, EC, sys::fs::OpenFlags::F_None);
686 error(EC, "error opening the file '" + OutputName + "'");
848 std::error_code EC;
849 OSs.emplace_back(PartFilename, EC, sys::fs::F_None);
850 if (EC)
851 error("error opening the file '" + PartFilename + "': " + EC.message());