Mercurial > hg > graal-compiler
comparison graal/GraalCompiler/src/com/sun/c1x/debug/CFGPrinter.java @ 2726:819a40e46826
Clean up
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Thu, 19 May 2011 17:02:12 +0200 |
parents | 173067211acb |
children | b72e6638b9e6 |
comparison
equal
deleted
inserted
replaced
2725:c379183d1c54 | 2726:819a40e46826 |
---|---|
157 printState(block); | 157 printState(block); |
158 printHIR(block); | 158 printHIR(block); |
159 } | 159 } |
160 | 160 |
161 if (printLIR) { | 161 if (printLIR) { |
162 printLIR(block); | 162 printLIR(block.lirBlock()); |
163 } | 163 } |
164 | 164 |
165 end("block"); | 165 end("block"); |
166 } | 166 } |
167 | 167 |
463 /** | 463 /** |
464 * Prints the LIR for each instruction in a given block. | 464 * Prints the LIR for each instruction in a given block. |
465 * | 465 * |
466 * @param block the block to print | 466 * @param block the block to print |
467 */ | 467 */ |
468 private void printLIR(BlockBegin block) { | 468 private void printLIR(LIRBlock block) { |
469 LIRList lir = block.lir(); | 469 LIRList lir = block.lir(); |
470 if (lir != null) { | 470 if (lir != null) { |
471 begin("IR"); | 471 begin("IR"); |
472 out.println("LIR"); | 472 out.println("LIR"); |
473 for (int i = 0; i < lir.length(); i++) { | 473 for (int i = 0; i < lir.length(); i++) { |