Changeset 5f2f2d7 for src/ResolvExpr
- Timestamp:
- Jun 8, 2015, 8:56:35 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 81419b5
- Parents:
- cd623a4
- Location:
- src/ResolvExpr
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/AlternativeFinder.cc
rcd623a4 r5f2f2d7 9 9 // Author : Richard C. Bilson 10 10 // Created On : Sat May 16 23:52:08 2015 11 // Last Modified By : Rob Schluntz12 // Last Modified On : Thu May 21 16:21:09201513 // Update Count : 1 211 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Jun 8 14:53:58 2015 13 // Update Count : 14 14 14 // 15 15 … … 209 209 pruneAlternatives( alternatives.begin(), alternatives.end(), front_inserter( alternatives ), indexer ); 210 210 if ( alternatives.begin() == oldBegin ) { 211 std::ostr stream stream;211 std::ostringstream stream; 212 212 stream << "Can't choose between alternatives for expression "; 213 213 expr->print( stream ); … … 216 216 findMinCost( alternatives.begin(), alternatives.end(), back_inserter( winners ) ); 217 217 printAlts( winners, stream, 8 ); 218 throw SemanticError( st d::string( stream.str(), stream.pcount()) );218 throw SemanticError( stream.str() ); 219 219 } 220 220 alternatives.erase( oldBegin, alternatives.end() ); -
src/ResolvExpr/RenameVars.cc
rcd623a4 r5f2f2d7 10 10 // Created On : Sun May 17 12:05:18 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sun May 17 12:07:59201513 // Update Count : 212 // Last Modified On : Mon Jun 8 14:51:35 2015 13 // Update Count : 4 14 14 // 15 15 16 #include <s trstream>16 #include <sstream> 17 17 18 18 #include "RenameVars.h" … … 120 120 mapStack.push_front( mapStack.front() ); 121 121 for ( std::list< TypeDecl* >::iterator i = type->get_forall().begin(); i != type->get_forall().end(); ++i ) { 122 std::ostr stream output;122 std::ostringstream output; 123 123 output << "_" << level << "_" << (*i)->get_name(); 124 std::string newname( output.str() , output.pcount());124 std::string newname( output.str() ); 125 125 mapStack.front()[ (*i)->get_name() ] = newname; 126 126 (*i)->set_name( newname ); -
src/ResolvExpr/Resolver.cc
rcd623a4 r5f2f2d7 9 9 // Author : Richard C. Bilson 10 10 // Created On : Sun May 17 12:17:01 2015 11 // Last Modified By : Rob Schluntz12 // Last Modified On : Mon Jun 01 13:47:16201513 // Update Count : 2 111 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sun Jun 7 21:50:37 2015 13 // Update Count : 23 14 14 // 15 15
Note: See TracChangeset
for help on using the changeset viewer.