mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 04:29:21 +00:00
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:
parent
f3e50bea06
commit
75afe1f904
@ -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
Block a user