toLLVM en visitor, todo : réparer la Declaration
This commit is contained in:
@@ -153,9 +153,9 @@ public class ProgramLLVM {
|
||||
}*/
|
||||
|
||||
|
||||
public static record allocaLLVMImpl(TypeLLVM type, int nbBits) implements ExpressionLLVM{
|
||||
public static record allocaLLVMImpl(TypeLLVM type) implements ExpressionLLVM{
|
||||
public String prettyprinter(){
|
||||
return "aloca" + " i" + nbBits;
|
||||
return "aloca" + " i" + type.getNbBit();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -190,6 +190,10 @@ public class ProgramLLVM {
|
||||
return "i32";
|
||||
}
|
||||
|
||||
public int getNbBit(){
|
||||
return 32;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -200,5 +204,9 @@ public class ProgramLLVM {
|
||||
return "void";
|
||||
}
|
||||
|
||||
public int getNbBit(){
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user