[llvm-commits] CVS: llvm-tv/tools/llvm-tv/GraphDrawer.cpp
Misha Brukman
brukman at cs.uiuc.edu
Mon Apr 18 11:35:18 PDT 2005
Changes in directory llvm-tv/tools/llvm-tv:
GraphDrawer.cpp updated: 1.6 -> 1.7
---
Log message:
Use the sys::Path interface instead of the old Support routines
---
Diffs of the changes: (+2 -1)
GraphDrawer.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm-tv/tools/llvm-tv/GraphDrawer.cpp
diff -u llvm-tv/tools/llvm-tv/GraphDrawer.cpp:1.6 llvm-tv/tools/llvm-tv/GraphDrawer.cpp:1.7
--- llvm-tv/tools/llvm-tv/GraphDrawer.cpp:1.6 Tue Oct 5 13:44:44 2004
+++ llvm-tv/tools/llvm-tv/GraphDrawer.cpp Mon Apr 18 13:35:07 2005
@@ -13,7 +13,8 @@
extern void FatalErrorBox (const std::string msg);
wxImage *GraphDrawer::buildwxImageFromDotFile (const std::string filename) {
- if (!FileOpenable (filename))
+ sys::Path File (filename);
+ if (! File.readable ())
FatalErrorBox ("buildwxImageFromDotFile() got passed a bogus filename: '"
+ filename + "'");
More information about the llvm-commits
mailing list