Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLNode.java @ 11904:ee8df8ae68c1
SL: update node constructors to use the Node(SourceSection) constructor
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Sun, 06 Oct 2013 19:54:56 -0700 |
parents | 79041ab43660 |
children | 71991b7a0f14 |
comparison
equal
deleted
inserted
replaced
11903:df1d665ca846 | 11904:ee8df8ae68c1 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2012, 2012, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
26 import com.oracle.truffle.api.nodes.*; | 26 import com.oracle.truffle.api.nodes.*; |
27 | 27 |
28 @TypeSystemReference(SLTypes.class) | 28 @TypeSystemReference(SLTypes.class) |
29 public class SLNode extends Node { | 29 public class SLNode extends Node { |
30 | 30 |
31 public SLNode() { | |
32 // No source attribution | |
33 super(null); | |
34 } | |
35 | |
31 @Override | 36 @Override |
32 public String toString() { | 37 public String toString() { |
33 return NodeUtil.printTreeToString(this); | 38 return NodeUtil.printTreeToString(this); |
34 } | 39 } |
35 | 40 |