From 04fc8c8d335af7c54d9a4fb8409748d2c84402f3 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 15 Sep 2009 15:33:42 +0000 Subject: 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 --- tools/llvm-dis/llvm-dis.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'tools/llvm-dis/llvm-dis.cpp') diff --git a/tools/llvm-dis/llvm-dis.cpp b/tools/llvm-dis/llvm-dis.cpp index 43bde53599c..b8b1a39384c 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; } -- cgit v1.2.3