forked from OSchip/llvm-project
Add option to print out machine code before register allocation.
llvm-svn: 14387
This commit is contained in:
parent
a79dd915b7
commit
5e3afa0d4c
|
@ -57,6 +57,10 @@ bool PowerPCTargetMachine::addPassesToEmitAssembly(PassManager &PM,
|
|||
PM.add(createLowerSwitchPass());
|
||||
|
||||
PM.add(createPPCSimpleInstructionSelector(*this));
|
||||
|
||||
if (PrintMachineCode)
|
||||
PM.add(createMachineFunctionPrinterPass(&std::cerr));
|
||||
|
||||
PM.add(createRegisterAllocator());
|
||||
PM.add(createPrologEpilogCodeInserter());
|
||||
PM.add(createPPCCodePrinterPass(Out, *this));
|
||||
|
|
Loading…
Reference in New Issue