Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/TruffleTypes.java @ 8252:0905d796944a
Refactored codegen error model to make error redirection a lot easier.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Wed, 13 Mar 2013 19:58:28 +0100 |
parents | 4969921f57b7 |
children | 97ad6d3e7557 |
comparison
equal
deleted
inserted
replaced
8251:cb70ed101b5f | 8252:0905d796944a |
---|---|
24 | 24 |
25 import java.util.*; | 25 import java.util.*; |
26 | 26 |
27 import javax.lang.model.element.*; | 27 import javax.lang.model.element.*; |
28 import javax.lang.model.type.*; | 28 import javax.lang.model.type.*; |
29 import javax.tools.Diagnostic.*; | |
29 | 30 |
30 import com.oracle.truffle.api.frame.*; | 31 import com.oracle.truffle.api.frame.*; |
31 import com.oracle.truffle.api.intrinsics.*; | 32 import com.oracle.truffle.api.intrinsics.*; |
32 import com.oracle.truffle.api.nodes.*; | 33 import com.oracle.truffle.api.nodes.*; |
33 import com.oracle.truffle.api.nodes.Node.Child; | 34 import com.oracle.truffle.api.nodes.Node.Child; |
64 if (errors.isEmpty()) { | 65 if (errors.isEmpty()) { |
65 return true; | 66 return true; |
66 } | 67 } |
67 | 68 |
68 for (String error : errors) { | 69 for (String error : errors) { |
69 context.getLog().error(element, mirror, error); | 70 context.getLog().message(Kind.ERROR, element, mirror, null, error); |
70 } | 71 } |
71 | 72 |
72 return false; | 73 return false; |
73 } | 74 } |
74 | 75 |