[llvm-commits] CVS: llvm/include/llvm/Support/GraphWriter.h
Reid Spencer
reid at x10sys.com
Wed Aug 23 13:35:14 PDT 2006
Changes in directory llvm/include/llvm/Support:
GraphWriter.h updated: 1.28 -> 1.29
---
Log message:
For PR797: http://llvm.org/PR797 :
Final removal of exceptions from lib/System and adjustment of users to
accommodate.
---
Diffs of the changes: (+5 -1)
GraphWriter.h | 6 +++++-
1 files changed, 5 insertions(+), 1 deletion(-)
Index: llvm/include/llvm/Support/GraphWriter.h
diff -u llvm/include/llvm/Support/GraphWriter.h:1.28 llvm/include/llvm/Support/GraphWriter.h:1.29
--- llvm/include/llvm/Support/GraphWriter.h:1.28 Tue Aug 22 14:01:30 2006
+++ llvm/include/llvm/Support/GraphWriter.h Wed Aug 23 15:34:57 2006
@@ -251,7 +251,11 @@
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());
More information about the llvm-commits
mailing list