Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/Box.cc

    r2a7b3ca rd56e5bc  
    504504                DeclarationWithType *Pass1::mutate( FunctionDecl *functionDecl ) {
    505505                        if ( functionDecl->get_statements() ) {         // empty routine body ?
    506                                 // std::cerr << "mutating function: " << functionDecl->get_mangleName() << std::endl;
    507506                                doBeginScope();
    508507                                scopeTyVars.beginScope();
     
    549548                                retval = oldRetval;
    550549                                doEndScope();
    551                                 // std::cerr << "end function: " << functionDecl->get_mangleName() << std::endl;
    552550                        } // if
    553551                        return functionDecl;
     
    11181116
    11191117                Expression *Pass1::mutate( ApplicationExpr *appExpr ) {
    1120                         // std::cerr << "mutate appExpr: " << InitTweak::getFunctionName( appExpr ) << std::endl;
     1118                        // std::cerr << "mutate appExpr: ";
    11211119                        // for ( TyVarMap::iterator i = scopeTyVars.begin(); i != scopeTyVars.end(); ++i ) {
    11221120                        //      std::cerr << i->first << " ";
     
    11431141                        ReferenceToType *dynRetType = isDynRet( function, exprTyVars );
    11441142
    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 
    11531143                        // 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
    11541144                        // passTypeVars needs to know the program-text return type (i.e. the distinction between _conc_T30 and T3(int))
    11551145                        // concRetType may not be a good name in one or both of these places. A more appropriate name change is welcome.
    11561146                        if ( dynRetType ) {
    1157                                 // std::cerr << "dynRetType: " << dynRetType << std::endl;
    11581147                                Type *concRetType = appExpr->get_result()->isVoid() ? nullptr : appExpr->get_result();
    11591148                                ret = addDynRetParam( appExpr, concRetType, arg ); // xxx - used to use dynRetType instead of concRetType
Note: See TracChangeset for help on using the changeset viewer.