- Timestamp:
- Nov 8, 2017, 10:49:46 AM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 6fa9e71, f5c3b6c
- Parents:
- 9f4524b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/AlternativeFinder.cc
r9f4524b rd06c808 312 312 Cost convCost = conversionCost( actualType, formalType, indexer, env ); 313 313 PRINT( 314 std::cerr << std::endl << "cost is " << convCost << std::endl;314 std::cerr << std::endl << "cost is " << convCost << std::endl; 315 315 ) 316 316 if ( convCost == Cost::infinity ) { … … 318 318 } 319 319 convCost.incPoly( polyCost( formalType, env, indexer ) + polyCost( actualType, env, indexer ) ); 320 PRINT( 321 std::cerr << "cost with polycost is " << convCost << std::endl; 322 ) 320 323 return convCost; 321 324 } … … 370 373 if ( function->get_isVarArgs() ) { 371 374 convCost.incUnsafe(); 375 PRINT( std::cerr << "end of formals with varargs function: inc unsafe: " << convCost << std::endl; ; ) 372 376 // convert reference-typed expressions to value-typed expressions 373 377 referenceToRvalueConversion( *actualExpr ); … … 378 382 } 379 383 Type * formalType = (*formal)->get_type(); 380 PRINT(381 std::cerr << std::endl << "converting ";382 actualType->print( std::cerr, 8 );383 std::cerr << std::endl << " to ";384 formalType->print( std::cerr, 8 );385 std::cerr << std::endl << "environment is: ";386 alt.env.print( std::cerr, 8 );387 std::cerr << std::endl;388 )389 384 convCost += computeExpressionConversionCost( *actualExpr, formalType, indexer, alt.env ); 390 385 ++formal; // can't be in for-loop update because of the continue
Note: See TracChangeset
for help on using the changeset viewer.