Changeset 908cc83 for src/ResolvExpr
- Timestamp:
- Sep 10, 2016, 1:31:37 PM (9 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:
- 8f7cea1
- Parents:
- 5af62f1
- Location:
- src/ResolvExpr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/ResolvExpr/AlternativeFinder.cc ¶
r5af62f1 r908cc83 64 64 } 65 65 66 Cost sumCost( const AltList &in ) { 67 Cost total; 68 for ( AltList::const_iterator i = in.begin(); i != in.end(); ++i ) { 69 total += i->cost; 70 } 71 return total; 72 } 73 66 74 namespace { 67 75 void printAlts( const AltList &list, std::ostream &os, int indent = 0 ) { … … 76 84 out.push_back( i->expr->clone() ); 77 85 } 78 }79 80 Cost sumCost( const AltList &in ) {81 Cost total;82 for ( AltList::const_iterator i = in.begin(); i != in.end(); ++i ) {83 total += i->cost;84 }85 return total;86 86 } 87 87 -
TabularUnified src/ResolvExpr/AlternativeFinder.h ¶
r5af62f1 r908cc83 109 109 std::copy( alternatives.begin(), alternatives.end(), out ); 110 110 } 111 112 Cost sumCost( const AltList &in ); 111 113 } // namespace ResolvExpr 112 114
Note: See TracChangeset
for help on using the changeset viewer.