Mercurial > hg > graal-compiler
diff graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/DirectCallNode.java @ 18310:36fb9592c13b
Truffle: simpler, more consistent toString for DirectCallNode subclasses.
author | Chris Seaton <chris.seaton@oracle.com> |
---|---|
date | Sat, 08 Nov 2014 22:22:00 +0000 |
parents | ab62800259ff |
children | 57f3498a51a4 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/DirectCallNode.java Sat Nov 08 22:03:36 2014 +0000 +++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/DirectCallNode.java Sat Nov 08 22:22:00 2014 +0000 @@ -175,4 +175,10 @@ } return null; } + + @Override + public String toString() { + return String.format("%s(target=%s)", getClass().getSimpleName(), getCurrentCallTarget()); + } + }