Displaying 1 result from an estimated 1 matches for "erroccur".
2013 Jul 12
14
[LLVMdev] [Proposal] Parallelize post-IPO stage.
...else {
+ std::string FN(FileNameWoExt + ".o");
+ return *(ObjFile = FileMgr.CreateObjFile(FN.c_str()));
+ }
+}
+
+
+bool IPOPartition::SaveBitCode() {
+ if (!Mod) {
+ // the bit-code have already saved in disk
+ return true;
+ }
+
+ IPOFile &F = getIRFile();
+ if (F.ErrOccur())
+ return false;
+
+ raw_fd_ostream OF(F.getPath().c_str(), F.getLastErrStr(),
+ raw_fd_ostream::F_Binary);
+ WriteBitcodeToFile(Mod, OF);
+ OF.close();
+
+ Mod = 0;
+ delete Ctx;
+ Ctx = 0;
+
+ return !F.ErrOccur();
+}
+
+bool IPOPartition::LoadBitCode() {
+ if (Mo...