diff options
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/GraphWriter.cpp | 5 | ||||
-rw-r--r-- | lib/Support/SystemUtils.cpp | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/Support/GraphWriter.cpp b/lib/Support/GraphWriter.cpp index 9d72db1bd2..a3d2d6c871 100644 --- a/lib/Support/GraphWriter.cpp +++ b/lib/Support/GraphWriter.cpp @@ -64,9 +64,10 @@ 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 << ": " << ErrMsg << "\n"; + errs() << "Error viewing graph " << Filename.str() << ": " << ErrMsg + << "\n"; else - Filename.eraseFromDisk(); + Filename.eraseFromDisk(); #elif (HAVE_GV && (HAVE_DOT || HAVE_FDP || HAVE_NEATO || \ HAVE_TWOPI || HAVE_CIRCO)) diff --git a/lib/Support/SystemUtils.cpp b/lib/Support/SystemUtils.cpp index 7756e033ad..3d3649eaeb 100644 --- a/lib/Support/SystemUtils.cpp +++ b/lib/Support/SystemUtils.cpp @@ -15,6 +15,7 @@ #include "llvm/Support/SystemUtils.h" #include "llvm/System/Process.h" #include "llvm/System/Program.h" +#include "llvm/Support/raw_ostream.h" using namespace llvm; bool llvm::CheckBitcodeOutputToConsole(raw_ostream &stream_to_check, |