Move Print*Pass to use raw_ostream.
llvm-svn: 57946
diff --git a/llvm/tools/llvm-dis/llvm-dis.cpp b/llvm/tools/llvm-dis/llvm-dis.cpp
index 276b1e4..89f19e1 100644
--- a/llvm/tools/llvm-dis/llvm-dis.cpp
+++ b/llvm/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 @@
// 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());
}