Changeset aadc9a4 for src/GenPoly/GenPoly.h
- Timestamp:
- Jan 12, 2016, 6:12:10 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:
- 4d7e8f5
- Parents:
- ebe9b3a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/GenPoly.h
rebe9b3a raadc9a4 22 22 23 23 #include "SynTree/Declaration.h" 24 #include "SynTree/Type.h" 24 25 #include "SynTree/TypeSubstitution.h" 25 26 … … 32 33 33 34 /// true iff function has polymorphic return type 34 bool isPolyRet( FunctionType *function, std::string &name, const TyVarMap &otherTyVars ); 35 bool isPolyRet( FunctionType *function, std::string &name ); 36 bool isPolyRet( FunctionType *function, const TyVarMap &otherTyVars ); 35 ReferenceToType *isPolyRet( FunctionType *function ); 37 36 38 37 /// returns polymorphic type if is polymorphic type, NULL otherwise; will look up substitution in env if provided … … 51 50 FunctionType * getFunctionType( Type *ty ); 52 51 52 /// Adds the declarations in the forall list of type (and its pointed-to type if it's a pointer type) to `tyVarMap` 53 void makeTyVarMap( Type *type, TyVarMap &tyVarMap ); 54 53 55 /// Prints type variable map 54 56 void printTyVarMap( std::ostream &os, const TyVarMap &tyVarMap );
Note: See TracChangeset
for help on using the changeset viewer.