diff options
author | Dan Gohman <gohman@apple.com> | 2010-10-29 17:03:40 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-10-29 17:03:40 +0000 |
commit | e1db7f200588568c2002d3e53d32f760e0c100f5 (patch) | |
tree | 4143e7cae734304cb152293f2fddd0ab1881c5f9 /llvm/lib/Support/GraphWriter.cpp | |
parent | fc81579b5e10b1c627c1bdbd9d1d035868cf11ee (diff) | |
download | bcm5719-llvm-e1db7f200588568c2002d3e53d32f760e0c100f5.tar.gz bcm5719-llvm-e1db7f200588568c2002d3e53d32f760e0c100f5.zip |
Fix these error messages to be less confusing. These error
messages primarily indicate errors running the viewer, not
errors with the graph file itself.
llvm-svn: 117665
Diffstat (limited to 'llvm/lib/Support/GraphWriter.cpp')
-rw-r--r-- | llvm/lib/Support/GraphWriter.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/llvm/lib/Support/GraphWriter.cpp b/llvm/lib/Support/GraphWriter.cpp index 2e9278d8dee..79e978afa09 100644 --- a/llvm/lib/Support/GraphWriter.cpp +++ b/llvm/lib/Support/GraphWriter.cpp @@ -64,8 +64,7 @@ void llvm::DisplayGraph(const sys::Path &Filename, bool wait, errs() << "Running 'Graphviz' program... "; if (sys::Program::ExecuteAndWait(Graphviz, &args[0],0,0,0,0,&ErrMsg)) { - errs() << "Error viewing graph " << Filename.str() << ": " << ErrMsg - << "\n"; + errs() << "Error: " << ErrMsg << "\n"; return; } Filename.eraseFromDisk(); @@ -90,8 +89,7 @@ void llvm::DisplayGraph(const sys::Path &Filename, bool wait, errs() << "Running 'xdot.py' program... "; if (sys::Program::ExecuteAndWait(sys::Path(LLVM_PATH_XDOT_PY), &args[0],0,0,0,0,&ErrMsg)) { - errs() << "Error viewing graph " << Filename.str() << ": " << ErrMsg - << "\n"; + errs() << "Error: " << ErrMsg << "\n"; return; } Filename.eraseFromDisk(); @@ -156,8 +154,7 @@ void llvm::DisplayGraph(const sys::Path &Filename, bool wait, errs() << "Running '" << prog.str() << "' program... "; if (sys::Program::ExecuteAndWait(prog, &args[0], 0, 0, 0, 0, &ErrMsg)) { - errs() << "Error viewing graph " << Filename.str() << ": '" - << ErrMsg << "\n"; + errs() << "Error: " << ErrMsg << "\n"; return; } errs() << " done. \n"; @@ -172,7 +169,7 @@ void llvm::DisplayGraph(const sys::Path &Filename, bool wait, ErrMsg.clear(); if (wait) { if (sys::Program::ExecuteAndWait(gv, &args[0],0,0,0,0,&ErrMsg)) - errs() << "Error viewing graph: " << ErrMsg << "\n"; + errs() << "Error: " << ErrMsg << "\n"; Filename.eraseFromDisk(); PSFilename.eraseFromDisk(); } @@ -191,8 +188,7 @@ void llvm::DisplayGraph(const sys::Path &Filename, bool wait, errs() << "Running 'dotty' program... "; if (sys::Program::ExecuteAndWait(dotty, &args[0],0,0,0,0,&ErrMsg)) { - errs() << "Error viewing graph " << Filename.str() << ": " - << ErrMsg << "\n"; + errs() << "Error: " << ErrMsg << "\n"; } else { // Dotty spawns another app and doesn't wait until it returns #if defined (__MINGW32__) || defined (_WINDOWS) |