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 | 97b59da0a82c96d077a36f4e4a4417529d0e060c (patch) | |
tree | 246f17c27dd8883ac62062bc22dbc482b8baf2f5 /tools | |
parent | 43dcc4032dde26fad0276e724095b3f37853c6da (diff) | |
download | external_llvm-97b59da0a82c96d077a36f4e4a4417529d0e060c.zip external_llvm-97b59da0a82c96d077a36f4e4a4417529d0e060c.tar.gz external_llvm-97b59da0a82c96d077a36f4e4a4417529d0e060c.tar.bz2 |
Don't bother using a PassManager just to print a Module.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81858 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llvm-dis/llvm-dis.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tools/llvm-dis/llvm-dis.cpp b/tools/llvm-dis/llvm-dis.cpp index 43bde53..b8b1a39 100644 --- a/tools/llvm-dis/llvm-dis.cpp +++ b/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; } |