From: Vikram S. Adve Date: Tue, 29 Jul 2003 19:58:00 +0000 (+0000) Subject: Rename 'dump-asm' to 'dump-input' and really print it just before code-gen. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=deb9634f0e0082cc7bb94e81ebff580e1cde5eac;p=oota-llvm.git Rename 'dump-asm' to 'dump-input' and really print it just before code-gen. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7394 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/SparcV9/SparcV9TargetMachine.cpp b/lib/Target/SparcV9/SparcV9TargetMachine.cpp index f389f93580e..ef6e2042fd4 100644 --- a/lib/Target/SparcV9/SparcV9TargetMachine.cpp +++ b/lib/Target/SparcV9/SparcV9TargetMachine.cpp @@ -52,8 +52,8 @@ DisableStrip("disable-strip", cl::desc("Do not strip the LLVM bytecode included in the executable")); static cl::opt -DumpAsm("dump-asm", cl::desc("Print bytecode before native code generation"), - cl::Hidden); +DumpInput("dump-input",cl::desc("Print bytecode before native code generation"), + cl::Hidden); //---------------------------------------------------------------------------- // allocateSparcTargetMachine - Allocate and return a subclass of TargetMachine @@ -154,10 +154,6 @@ bool UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out) // Replace malloc and free instructions with library calls. PM.add(createLowerAllocationsPass()); - // If LLVM dumping after transformations is requested, add it to the pipeline - if (DumpAsm) - PM.add(new PrintFunctionPass("Code after xformations: \n", &std::cerr)); - // Strip all of the symbols from the bytecode so that it will be smaller... if (!DisableStrip) PM.add(createSymbolStrippingPass()); @@ -180,6 +176,10 @@ bool UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out) PM.add(createLICMPass()); PM.add(createGCSEPass()); } + + // If LLVM dumping after transformations is requested, add it to the pipeline + if (DumpInput) + PM.add(new PrintFunctionPass("Input code to instr. selection: \n", &std::cerr)); PM.add(createInstructionSelectionPass(*this));