diff options
author | Bill Wendling <isanbard@gmail.com> | 2006-11-17 09:52:49 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2006-11-17 09:52:49 +0000 |
commit | 52883e7a9a637c0d6dea091917090a8ac63e7736 (patch) | |
tree | d013a0dd10422e717047ce4fbd7b20e00c890569 /include/llvm/Support/GraphWriter.h | |
parent | e562ed1c92d2d0845632c0f7d9f294fa7c4103ba (diff) |
Used llvm_ostream instead of std::ostream objects. This will reduce use
of the icky <iostream> class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31818 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/GraphWriter.h')
-rw-r--r-- | include/llvm/Support/GraphWriter.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/llvm/Support/GraphWriter.h b/include/llvm/Support/GraphWriter.h index b4e6d845e6..8602e74c14 100644 --- a/include/llvm/Support/GraphWriter.h +++ b/include/llvm/Support/GraphWriter.h @@ -23,12 +23,12 @@ #ifndef LLVM_SUPPORT_GRAPHWRITER_H #define LLVM_SUPPORT_GRAPHWRITER_H +#include "llvm/Support/Debug.h" #include "llvm/Support/DOTGraphTraits.h" #include "llvm/ADT/GraphTraits.h" #include "llvm/System/Path.h" -#include <vector> -#include <iostream> #include <fstream> +#include <vector> namespace llvm { @@ -247,16 +247,16 @@ sys::Path WriteGraph(const GraphType &G, std::string ErrMsg; sys::Path Filename = sys::Path::GetTemporaryDirectory(&ErrMsg); if (Filename.isEmpty()) { - std::cerr << "Error: " << ErrMsg << "\n"; + llvm_cerr << "Error: " << ErrMsg << "\n"; return Filename; } Filename.appendComponent(Name + ".dot"); if (Filename.makeUnique(true,&ErrMsg)) { - std::cerr << "Error: " << ErrMsg << "\n"; + llvm_cerr << "Error: " << ErrMsg << "\n"; return sys::Path(); } - std::cerr << "Writing '" << Filename << "'... "; + llvm_cerr << "Writing '" << Filename << "'... "; std::ofstream O(Filename.c_str()); @@ -275,12 +275,12 @@ sys::Path WriteGraph(const GraphType &G, // Output the end of the graph W.writeFooter(); - std::cerr << " done. \n"; + llvm_cerr << " done. \n"; O.close(); } else { - std::cerr << "error opening file for writing!\n"; + llvm_cerr << "error opening file for writing!\n"; Filename.clear(); } |