Skip to content
Snippets Groups Projects
Commit 72daaa46 authored by Brian Gaeke's avatar Brian Gaeke
Browse files

JIT should print LLVM each function before selecting instructions for it.

llvm-svn: 18803
parent 5625dec2
No related branches found
No related tags found
No related merge requests found
......@@ -137,6 +137,10 @@ void SparcV8JITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
// FIXME: implement the select instruction in the instruction selector.
PM.add(createLowerSelectPass());
// Print LLVM code input to instruction selector:
if (PrintMachineCode)
PM.add(new PrintFunctionPass());
PM.add(createSparcV8SimpleInstructionSelector(TM));
// Print machine instructions as they were initially generated.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment