llvmir some opt

This commit is contained in:
邓智航
2025-12-10 17:58:17 +08:00
commit 84827838e2
103 changed files with 5838 additions and 0 deletions

27
error/Error.java Normal file
View File

@@ -0,0 +1,27 @@
package error;
public class Error {
private int line;
private ErrorType type;
public Error(int line, ErrorType type) {
this.line = line;
this.type = type;
}
public void printError() {
System.out.println(this.line + " " + this.type);
}
public int getLine() {
return this.line;
}
public ErrorType getType() {
return this.type;
}
public String toString() {
return this.line + " " + this.type + "\n";
}
}