diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-10-22 03:25:22 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-10-22 03:25:22 +0000 |
commit | 3b0da26e202cbbeb22508231f4278bda8e995391 (patch) | |
tree | 07722427aee47227292daf03427c9d0f1b749281 /tools | |
parent | 1dc9716121ed3da5ffae3eb25031469620f275e8 (diff) | |
download | llvm-3b0da26e202cbbeb22508231f4278bda8e995391.tar.gz llvm-3b0da26e202cbbeb22508231f4278bda8e995391.tar.bz2 llvm-3b0da26e202cbbeb22508231f4278bda8e995391.tar.xz |
Move Print*Pass to use raw_ostream.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57946 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llvm-dis/llvm-dis.cpp | 3 | ||||
-rw-r--r-- | tools/opt/opt.cpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tools/llvm-dis/llvm-dis.cpp b/tools/llvm-dis/llvm-dis.cpp index 276b1e4953..89f19e1dae 100644 --- a/tools/llvm-dis/llvm-dis.cpp +++ b/tools/llvm-dis/llvm-dis.cpp @@ -24,6 +24,7 @@ #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/Streams.h" +#include "llvm/Support/raw_ostream.h" #include "llvm/System/Signals.h" #include <iostream> #include <fstream> @@ -117,7 +118,7 @@ int main(int argc, char **argv) { // All that llvm-dis does is write the assembly to a file. if (!DontPrint) { PassManager Passes; - OStream L(*Out); + raw_os_ostream L(*Out); Passes.add(createPrintModulePass(&L)); Passes.run(*M.get()); } diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index 358cbdabfb..a339d316ea 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -30,6 +30,7 @@ #include "llvm/Support/PluginLoader.h" #include "llvm/Support/Streams.h" #include "llvm/Support/SystemUtils.h" +#include "llvm/Support/raw_ostream.h" #include "llvm/LinkAllPasses.h" #include "llvm/LinkAllVMCore.h" #include <iostream> @@ -543,7 +544,7 @@ int main(int argc, char **argv) { } if (PrintEachXForm) - Passes.add(createPrintModulePass(&cerr)); + Passes.add(createPrintModulePass(&errs())); } // If -std-compile-opts was specified at the end of the pass list, add them. |