mirror of https://github.com/aamine/cbc
add preproc tags
git-svn-id: file:///Users/aamine/c/gitwork/public/cbc/trunk@4226 1b9489fe-b721-0410-924e-b54b9192deb8
This commit is contained in:
parent
7af5ebc4a9
commit
68332ee470
|
@ -31,9 +31,11 @@ abstract public class Expr implements Dumpable {
|
|||
throw new Error("Expr#memref called");
|
||||
}
|
||||
|
||||
// #@@range/addressNode{
|
||||
public Expr addressNode(Type type) {
|
||||
throw new Error("unexpected node for LHS: " + getClass());
|
||||
}
|
||||
// #@@}
|
||||
|
||||
public Entity getEntityForce() {
|
||||
return null;
|
||||
|
|
|
@ -30,9 +30,11 @@ public class Var extends Expr {
|
|||
return entity.memref();
|
||||
}
|
||||
|
||||
// #@@range/addressNode{
|
||||
public Addr addressNode(Type type) {
|
||||
return new Addr(type, entity);
|
||||
}
|
||||
// #@@}
|
||||
|
||||
public Entity getEntityForce() {
|
||||
return entity;
|
||||
|
|
Loading…
Reference in New Issue