Ignore:
Timestamp:
Jan 12, 2016, 6:12:10 PM (9 years ago)
Author:
Aaron Moss <a3moss@…>
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
Message:

Refactor isPolyRet to include generic return types

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/GenPoly.h

    rebe9b3a raadc9a4  
    2222
    2323#include "SynTree/Declaration.h"
     24#include "SynTree/Type.h"
    2425#include "SynTree/TypeSubstitution.h"
    2526
     
    3233
    3334        /// 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 );
    3736
    3837        /// returns polymorphic type if is polymorphic type, NULL otherwise; will look up substitution in env if provided
     
    5150        FunctionType * getFunctionType( Type *ty );
    5251
     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       
    5355        /// Prints type variable map
    5456        void printTyVarMap( std::ostream &os, const TyVarMap &tyVarMap );
Note: See TracChangeset for help on using the changeset viewer.