scanf bon
This commit is contained in:
@@ -220,7 +220,12 @@ public class toLLVM_Visitor implements ProgramVisitor<SymTable,ProgramLLVMImp>,
|
||||
for(int i = 0; i<instr.t().size(); i++){
|
||||
String nomVar = h.getVar(instr.t().get(i).name());
|
||||
Type typeVar = h.getType(instr.t().get(i).name());
|
||||
VarLLVMImp newVar = new VarLLVMImp(typeVar.accept(this,h), nomVar,false);
|
||||
|
||||
//Ajout * par passant PointerType
|
||||
TypeLLVM baseType = typeVar.accept(this, h);
|
||||
TypeLLVM ptrType = new PointerLLVMImp(baseType);
|
||||
|
||||
VarLLVMImp newVar = new VarLLVMImp(ptrType, nomVar,false);
|
||||
strGlobal+="%d"; //2 char de long
|
||||
size+=2;
|
||||
params.add(newVar);
|
||||
|
||||
Reference in New Issue
Block a user