For PR797:

Final removal of exceptions from lib/System and adjustment of users to
accommodate.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29846 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer
2006-08-23 20:34:57 +00:00
parent cc2e0845c3
commit 51c5a286ba
9 changed files with 144 additions and 126 deletions

View File

@@ -251,7 +251,11 @@ sys::Path WriteGraph(const GraphType &G,
return Filename;
}
Filename.appendComponent(Name + ".dot");
Filename.makeUnique();
if (Filename.makeUnique(true,&ErrMsg)) {
std::cerr << "Error: " << ErrMsg << "\n";
return sys::Path();
}
std::cerr << "Writing '" << Filename << "'... ";
std::ofstream O(Filename.c_str());