diff options
| author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2003-07-29 19:58:00 +0000 |
|---|---|---|
| committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2003-07-29 19:58:00 +0000 |
| commit | 2b630b4ec2b62ce6b21880eef54a68bebc0e90ba (patch) | |
| tree | e1070ff4400ac13d1043cff9b512227da683700c /llvm/lib/Target/Sparc | |
| parent | dbc0eb6a2d7b66f9be5dae806595339986edd623 (diff) | |
| download | bcm5719-llvm-2b630b4ec2b62ce6b21880eef54a68bebc0e90ba.tar.gz bcm5719-llvm-2b630b4ec2b62ce6b21880eef54a68bebc0e90ba.zip | |
Rename 'dump-asm' to 'dump-input' and really print it just before code-gen.
llvm-svn: 7394
Diffstat (limited to 'llvm/lib/Target/Sparc')
| -rw-r--r-- | llvm/lib/Target/Sparc/Sparc.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Target/Sparc/Sparc.cpp b/llvm/lib/Target/Sparc/Sparc.cpp index f389f93580e..ef6e2042fd4 100644 --- a/llvm/lib/Target/Sparc/Sparc.cpp +++ b/llvm/lib/Target/Sparc/Sparc.cpp @@ -52,8 +52,8 @@ DisableStrip("disable-strip", cl::desc("Do not strip the LLVM bytecode included in the executable")); static cl::opt<bool> -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)); |

