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
// 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());
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));