changeset 19915:34372ac20f0b

LIRSuites: add copy constructor.
author Josef Eisl <josef.eisl@jku.at>
date Mon, 16 Mar 2015 16:38:01 +0100
parents d27ca0a54e36
children fc1e46a702a1
files graal/com.oracle.graal.lir/src/com/oracle/graal/lir/phases/LIRSuites.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/phases/LIRSuites.java	Mon Mar 16 16:37:21 2015 +0100
+++ b/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/phases/LIRSuites.java	Mon Mar 16 16:38:01 2015 +0100
@@ -41,6 +41,10 @@
         this.postAllocStage = postAllocStage;
     }
 
+    public LIRSuites(LIRSuites other) {
+        this(other.getPreAllocationOptimizationStage().copy(), other.getAllocationStage().copy(), other.getPostAllocationOptimizationStage().copy());
+    }
+
     /**
      * {@link PreAllocationOptimizationPhase}s are executed between {@link LIR} generation and
      * register allocation.