diff options
author | Dan Gohman <gohman@apple.com> | 2009-09-15 15:33:42 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-09-15 15:33:42 +0000 |
commit | 972c9c5e0a6b38635ec40bf3afa4f8d965919c7c (patch) | |
tree | 00f03c2ad407f4976fb79fa4dd9d08b45019ef1c /llvm/tools/llvm-dis/llvm-dis.cpp | |
parent | d29cafc08390a5da1983a83c2c5b9750de49441b (diff) | |
download | bcm5719-llvm-972c9c5e0a6b38635ec40bf3afa4f8d965919c7c.tar.gz bcm5719-llvm-972c9c5e0a6b38635ec40bf3afa4f8d965919c7c.zip |
Don't bother using a PassManager just to print a Module.
llvm-svn: 81858
Diffstat (limited to 'llvm/tools/llvm-dis/llvm-dis.cpp')
-rw-r--r-- | llvm/tools/llvm-dis/llvm-dis.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/llvm/tools/llvm-dis/llvm-dis.cpp b/llvm/tools/llvm-dis/llvm-dis.cpp index 43bde53599c..b8b1a39384c 100644 --- a/llvm/tools/llvm-dis/llvm-dis.cpp +++ b/llvm/tools/llvm-dis/llvm-dis.cpp @@ -18,9 +18,7 @@ #include "llvm/LLVMContext.h" #include "llvm/Module.h" -#include "llvm/PassManager.h" #include "llvm/Bitcode/ReaderWriter.h" -#include "llvm/Assembly/PrintModulePass.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/MemoryBuffer.h" @@ -105,11 +103,8 @@ int main(int argc, char **argv) { } // All that llvm-dis does is write the assembly to a file. - if (!DontPrint) { - PassManager Passes; - Passes.add(createPrintModulePass(Out.get())); - Passes.run(*M.get()); - } + if (!DontPrint) + *Out << *M; return 0; } |