compiler/codegen/symbol.cpp
//start from 1 to cooperate with createLocalVariable
start from 1 to cooperate with createLocalVariable
start from 1 to cooperate with createLocalVariable
for_formals(arg, this) {
      if (arg->hasFlag(FLAG_NO_CODEGEN))
        continue; 
      if (arg->requiresCPtr()){
        llvm::Argument& llArg = *ai;
        info->lvt->addValue(arg->cname, &llArg,  GEN_PTR, !is_signed(type));
      } else {
        GenRet gArg;
        llvm::Argument& llArg = *ai;
        gArg.val = &llArg;
        gArg.chplType = arg->typeInfo();
        GenRet tempVar = createTempVarWith(gArg);
        info->lvt->addValue(arg->cname, tempVar.val,
                            tempVar.isLVPtr, !is_signed(type));
        if(debug_info){
          debug_info->get_formal_arg(arg, ArgNo);
        }
      }
      ++ai;
      ArgNo++;
    }
for_formals ( arg , this ) { if ( arg -> hasFlag ( FLAG_NO_CODEGEN ) ) continue ; if ( arg -> requiresCPtr ( ) ) { llvm :: Argument & llArg = * ai ; info -> lvt -> addValue ( arg -> cname , & llArg , GEN_PTR , ! is_signed ( type ) ) ; } else { GenRet gArg ; llvm :: Argument & llArg = * ai ; gArg . val = & llArg ; gArg . chplType = arg -> typeInfo ( ) ; GenRet tempVar = createTempVarWith ( gArg ) ; info -> lvt -> addValue ( arg -> cname , tempVar . val , tempVar . isLVPtr , ! is_signed ( type ) ) ; if ( debug_info ) { debug_info -> get_formal_arg ( arg , ArgNo ) ; } } ++ ai ; ArgNo ++ ; }
start from 1 to cooperate with createLocalVariable
start from 1 to cooperate with createLocalVariable
// do not print locale argument, end count, dummy class // debug info for formal arguments