Add option to print out machine code before register allocation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14387 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Misha Brukman 2004-06-24 23:55:01 +00:00
parent f3e50bea06
commit 75afe1f904

View File

@ -57,6 +57,10 @@ bool PowerPCTargetMachine::addPassesToEmitAssembly(PassManager &PM,
PM.add(createLowerSwitchPass()); PM.add(createLowerSwitchPass());
PM.add(createPPCSimpleInstructionSelector(*this)); PM.add(createPPCSimpleInstructionSelector(*this));
if (PrintMachineCode)
PM.add(createMachineFunctionPrinterPass(&std::cerr));
PM.add(createRegisterAllocator()); PM.add(createRegisterAllocator());
PM.add(createPrologEpilogCodeInserter()); PM.add(createPrologEpilogCodeInserter());
PM.add(createPPCCodePrinterPass(Out, *this)); PM.add(createPPCCodePrinterPass(Out, *this));