1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Don't bother using a PassManager just to print a Module.

llvm-svn: 81858
This commit is contained in:
Dan Gohman 2009-09-15 15:33:42 +00:00
parent 8d6df0783e
commit 5a8cf339b0

View File

@ -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;
}