Mercurial > hg > truffle
changeset 17112:4c9c347fa4da
[SPARC] Renamed member tmp to avoid compiler warnings
author | Stefan Anzinger <stefan.anzinger@oracle.com> |
---|---|
date | Mon, 15 Sep 2014 20:20:51 -0700 |
parents | 881fa8b6ca9d |
children | 583bf03b3e1a 9a0bf0c3b21e |
files | graal/com.oracle.graal.compiler.sparc/src/com/oracle/graal/compiler/sparc/SPARCLIRGenerator.java |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler.sparc/src/com/oracle/graal/compiler/sparc/SPARCLIRGenerator.java Mon Sep 15 20:06:56 2014 -0700 +++ b/graal/com.oracle.graal.compiler.sparc/src/com/oracle/graal/compiler/sparc/SPARCLIRGenerator.java Mon Sep 15 20:20:51 2014 -0700 @@ -67,6 +67,8 @@ */ public abstract class SPARCLIRGenerator extends LIRGenerator { + private StackSlot tmpStackSlot; + private class SPARCSpillMoveFactory implements LIR.SpillMoveFactory { @Override @@ -871,13 +873,11 @@ append(new MoveFpGp(dst, src, tempSlot)); } - private StackSlot tmp; - private StackSlot getTempSlot(LIRKind kind) { - if (tmp == null) { - tmp = getResult().getFrameMap().allocateSpillSlot(kind); + if (tmpStackSlot == null) { + tmpStackSlot = getResult().getFrameMap().allocateSpillSlot(kind); } - return tmp; + return tmpStackSlot; } protected SPARC getArchitecture() {