# HG changeset patch # User Stefan Anzinger # Date 1423272883 -3600 # Node ID 3059a52d9614a95e051e965c89459d8cf6abf077 # Parent f92ea2a54112329dc0fd12e3606d6628868c6da4 Add LIR to the context to be used un DumpOnError diff -r f92ea2a54112 -r 3059a52d9614 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 Sat Feb 07 02:33:47 2015 +0100 +++ b/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/GraalCompiler.java Sat Feb 07 02:34:43 2015 +0100 @@ -276,7 +276,7 @@ try (TimerCloseable a = BackEnd.start()) { LIRGenerationResult lirGen = null; lirGen = emitLIR(backend, target, schedule, graph, stub, cc, registerConfig); - try (Scope s = Debug.scope("CodeGen", lirGen)) { + try (Scope s = Debug.scope("CodeGen", new Object[]{lirGen, lirGen.getLIR()})) { emitCode(backend, assumptions, lirGen, compilationResult, installedCodeOwner, factory); } catch (Throwable e) { throw Debug.handle(e);