Changeset bfae637
- Timestamp:
- Apr 11, 2016, 3:22:36 PM (8 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:
- 6f49cdf
- Parents:
- 63c0dbf
- Location:
- src/GenPoly
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Box.cc
r63c0dbf rbfae637 1278 1278 std::list< Expression *>::iterator paramBegin = appExpr->get_args().begin(); 1279 1279 1280 TyVarMap exprTyVars ;1280 TyVarMap exprTyVars( (TypeDecl::Kind)-1 ); 1281 1281 makeTyVarMap( function, exprTyVars ); 1282 1282 ReferenceToType *polyRetType = isPolyRet( function ); -
src/GenPoly/FindFunction.cc
r63c0dbf rbfae637 55 55 TyVarMap::iterator var = tyVars.find( (*i)->get_name() ); 56 56 if ( var != tyVars.end() ) { 57 tyVars.erase( var );57 tyVars.erase( var->first ); 58 58 } // if 59 59 } // for -
src/GenPoly/GenPoly.cc
r63c0dbf rbfae637 37 37 ReferenceToType *isPolyRet( FunctionType *function ) { 38 38 if ( ! function->get_returnVals().empty() ) { 39 TyVarMap forallTypes ;39 TyVarMap forallTypes( (TypeDecl::Kind)-1 ); 40 40 makeTyVarMap( function, forallTypes ); 41 41 return (ReferenceToType*)isPolyType( function->get_returnVals().front()->get_type(), forallTypes ); -
src/GenPoly/GenPoly.h
r63c0dbf rbfae637 17 17 #define GENPOLY_H 18 18 19 #include <map>20 19 #include <string> 21 20 #include <iostream> 22 21 #include <utility> 22 23 #include "ErasableScopedMap.h" 23 24 24 25 #include "SymTab/Mangler.h" … … 29 30 30 31 namespace GenPoly { 31 typedef std::map< std::string, TypeDecl::Kind > TyVarMap;32 typedef ErasableScopedMap< std::string, TypeDecl::Kind > TyVarMap; 32 33 33 34 /// A function needs an adapter if it returns a polymorphic value or if any of its -
src/GenPoly/PolyMutator.cc
r63c0dbf rbfae637 27 27 } 28 28 29 PolyMutator::PolyMutator() : env( 0 ) { 30 } 29 PolyMutator::PolyMutator() : scopeTyVars( (TypeDecl::Kind)-1 ), env( 0 ) {} 31 30 32 31 void PolyMutator::mutateStatementList( std::list< Statement* > &statements ) {
Note: See TracChangeset
for help on using the changeset viewer.