aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvm-dis
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-10-22 03:25:22 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-10-22 03:25:22 +0000
commit3b475e99db65dccb5b816af218f3335573e7f526 (patch)
tree07722427aee47227292daf03427c9d0f1b749281 /tools/llvm-dis
parentce0c31ad8f24e16bba6fb62d88b2567ebeaf2dfe (diff)
downloadexternal_llvm-3b475e99db65dccb5b816af218f3335573e7f526.zip
external_llvm-3b475e99db65dccb5b816af218f3335573e7f526.tar.gz
external_llvm-3b475e99db65dccb5b816af218f3335573e7f526.tar.bz2
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/llvm-dis')
-rw-r--r--tools/llvm-dis/llvm-dis.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/llvm-dis/llvm-dis.cpp b/tools/llvm-dis/llvm-dis.cpp
index 276b1e4..89f19e1 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());
}