hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.graph/src/org/graalvm/compiler/graph/Node.java
changeset 46640 70bdce04c59b
parent 46509 b32d3928ad6a
--- a/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.graph/src/org/graalvm/compiler/graph/Node.java	Fri Jul 07 10:37:52 2017 +0200
+++ b/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.graph/src/org/graalvm/compiler/graph/Node.java	Fri Jul 07 09:40:47 2017 -0700
@@ -43,6 +43,7 @@
 import org.graalvm.compiler.core.common.type.AbstractPointerStamp;
 import org.graalvm.compiler.core.common.type.Stamp;
 import org.graalvm.compiler.debug.DebugCloseable;
+import org.graalvm.compiler.debug.DebugContext;
 import org.graalvm.compiler.graph.Graph.NodeEventListener;
 import org.graalvm.compiler.graph.Graph.Options;
 import org.graalvm.compiler.graph.iterators.NodeIterable;
@@ -263,6 +264,13 @@
     }
 
     /**
+     * Gets the debug context associated with this node's graph.
+     */
+    public final DebugContext getDebug() {
+        return graph.getDebug();
+    }
+
+    /**
      * Returns an {@link NodeIterable iterable} which can be used to traverse all non-null input
      * edges of this node.
      *