Changes in src/GenPoly/Box.cc [2a7b3ca:d56e5bc]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Box.cc
r2a7b3ca rd56e5bc 504 504 DeclarationWithType *Pass1::mutate( FunctionDecl *functionDecl ) { 505 505 if ( functionDecl->get_statements() ) { // empty routine body ? 506 // std::cerr << "mutating function: " << functionDecl->get_mangleName() << std::endl;507 506 doBeginScope(); 508 507 scopeTyVars.beginScope(); … … 549 548 retval = oldRetval; 550 549 doEndScope(); 551 // std::cerr << "end function: " << functionDecl->get_mangleName() << std::endl;552 550 } // if 553 551 return functionDecl; … … 1118 1116 1119 1117 Expression *Pass1::mutate( ApplicationExpr *appExpr ) { 1120 // std::cerr << "mutate appExpr: " << InitTweak::getFunctionName( appExpr ) << std::endl;1118 // std::cerr << "mutate appExpr: "; 1121 1119 // for ( TyVarMap::iterator i = scopeTyVars.begin(); i != scopeTyVars.end(); ++i ) { 1122 1120 // std::cerr << i->first << " "; … … 1143 1141 ReferenceToType *dynRetType = isDynRet( function, exprTyVars ); 1144 1142 1145 // std::cerr << function << std::endl;1146 // std::cerr << "scopeTyVars: ";1147 // printTyVarMap( std::cerr, scopeTyVars );1148 // std::cerr << "exprTyVars: ";1149 // printTyVarMap( std::cerr, exprTyVars );1150 // std::cerr << "env: " << *env << std::endl;1151 // std::cerr << needsAdapter( function, scopeTyVars ) << ! needsAdapter( function, exprTyVars) << std::endl;1152 1153 1143 // NOTE: addDynRetParam needs to know the actual (generated) return type so it can make a temp variable, so pass the result type from the appExpr 1154 1144 // passTypeVars needs to know the program-text return type (i.e. the distinction between _conc_T30 and T3(int)) 1155 1145 // concRetType may not be a good name in one or both of these places. A more appropriate name change is welcome. 1156 1146 if ( dynRetType ) { 1157 // std::cerr << "dynRetType: " << dynRetType << std::endl;1158 1147 Type *concRetType = appExpr->get_result()->isVoid() ? nullptr : appExpr->get_result(); 1159 1148 ret = addDynRetParam( appExpr, concRetType, arg ); // xxx - used to use dynRetType instead of concRetType
Note:
See TracChangeset
for help on using the changeset viewer.