diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-08-23 20:34:57 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-08-23 20:34:57 +0000 |
commit | 51c5a286bae5ad27ddc49602f44b7ea7253a4cc9 (patch) | |
tree | 23e5816bdf4e8ea6f02a6d639101c9132ac3ea54 /include/llvm/Support/GraphWriter.h | |
parent | cc2e0845c30cbbf79b51c6c39c102af27c19a1a8 (diff) |
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
Diffstat (limited to 'include/llvm/Support/GraphWriter.h')
-rw-r--r-- | include/llvm/Support/GraphWriter.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/Support/GraphWriter.h b/include/llvm/Support/GraphWriter.h index 845367bc80..6bf43d29c7 100644 --- a/include/llvm/Support/GraphWriter.h +++ b/include/llvm/Support/GraphWriter.h @@ -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()); |