# HG changeset patch # User Doug Simon # Date 1334764613 -7200 # Node ID 2d26d5ca2e5b8b51f7607a6d941a749605c60df3 # Parent 066f1687ba245b8b47ccc2241279b9356aa18221 give machine code printed by the CFGPrinterObserver a cfg context so that does not depend on the LIR also being printed diff -r 066f1687ba24 -r 2d26d5ca2e5b graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/GraalCompiler.java --- a/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/GraalCompiler.java Wed Apr 18 13:42:11 2012 +0200 +++ b/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/GraalCompiler.java Wed Apr 18 17:56:53 2012 +0200 @@ -277,7 +277,7 @@ } Debug.dump(lir, "After code generation"); - Debug.dump(targetMethod, "After code generation"); + Debug.dump(targetMethod, "Generated code"); return targetMethod; } } diff -r 066f1687ba24 -r 2d26d5ca2e5b graal/com.oracle.graal.printer/src/com/oracle/graal/printer/CFGPrinterObserver.java --- a/graal/com.oracle.graal.printer/src/com/oracle/graal/printer/CFGPrinterObserver.java Wed Apr 18 13:42:11 2012 +0200 +++ b/graal/com.oracle.graal.printer/src/com/oracle/graal/printer/CFGPrinterObserver.java Wed Apr 18 17:56:53 2012 +0200 @@ -109,7 +109,7 @@ cfgPrinter.printCFG(message, Arrays.asList(cfgPrinter.cfg.getBlocks())); } else if (object instanceof CiTargetMethod) { - cfgPrinter.printMachineCode(runtime.disassemble((CiTargetMethod) object), null); + cfgPrinter.printMachineCode(runtime.disassemble((CiTargetMethod) object), message); } else if (object instanceof Interval[]) { cfgPrinter.printIntervals(message, (Interval[]) object);