cbc/net/loveruby/cflat/asm/LabelRef.java

30 lines
511 B
Java

package net.loveruby.cflat.asm;
public class LabelRef extends Literal {
protected Label label;
public LabelRef(Label label) {
this.label = label;
}
public Label label() {
return label;
}
public String symbol() {
return label.name();
}
public boolean isZero() {
return false;
}
public void collectStatistics(AsmStatistics stats) {
stats.labelUsed(label);
}
public String toSource() {
return symbol();
}
}