1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-09-08 17:54:40 +00:00

added a few toString()s

This commit is contained in:
jespergravgaard 2017-07-20 10:14:22 +02:00
parent 00463cd72f
commit d38c26eeb5
4 changed files with 22 additions and 0 deletions

View File

@ -37,4 +37,10 @@ public class AsmComment implements AsmLine {
return "// "+comment;
}
@Override
public String toString() {
return getAsm();
}
}

View File

@ -48,4 +48,9 @@ public class AsmInstruction implements AsmLine {
return type.getAsm(parameter);
}
@Override
public String toString() {
return getAsm();
}
}

View File

@ -37,4 +37,10 @@ public class AsmLabel implements AsmLine {
public String getAsm() {
return label+":";
}
@Override
public String toString() {
return getAsm();
}
}

View File

@ -90,4 +90,9 @@ public class SymbolRef implements Value {
return fullName.substring(0, lastScopeIdx);
}
}
@Override
public String toString() {
return getFullName();
}
}