mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-25 21:16:19 +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. llvm-svn: 13879
This commit is contained in:
parent
523d845aea
commit
2bd005cb45
@ -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…
Reference in New Issue
Block a user