mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-03 14:31:10 +00:00
Make debugging output with -print-machineinstrs more useful: always print out
the transformed LLVM code which is the input to the instruction selector. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13879 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f4ad013a0e
commit
b985158c35
@ -149,6 +149,11 @@ SparcV9TargetMachine::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out
|
||||
PM.add(createLICMPass());
|
||||
PM.add(createGCSEPass());
|
||||
|
||||
// If the user's trying to read the generated code, they'll need to see the
|
||||
// transformed input.
|
||||
if (PrintMachineCode)
|
||||
PM.add(new PrintModulePass());
|
||||
|
||||
// Construct and initialize the MachineFunction object for this fn.
|
||||
PM.add(createMachineCodeConstructionPass(*this));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user