Changeset a08ba92 for translator/GenPoly


Ignore:
Timestamp:
May 19, 2015, 4:58:14 PM (9 years ago)
Author:
Peter A. Buhr <pabuhr@…>
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:
843054c2
Parents:
01aeade
Message:

licencing: sixth groups of files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • translator/GenPoly/ScrubTyVars.cc

    r01aeade ra08ba92  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue May 19 07:47:31 2015
    13 // Update Count     : 1
     12// Last Modified On : Tue May 19 16:42:42 2015
     13// Update Count     : 2
    1414//
    1515
     
    2222
    2323namespace GenPoly {
    24     Type * ScrubTyVars::mutate( TypeInstType *typeInst ) {
     24        Type * ScrubTyVars::mutate( TypeInstType *typeInst ) {
    2525                TyVarMap::const_iterator tyVar = tyVars.find( typeInst->get_name() );
    2626                if ( doAll || tyVar != tyVars.end() ) {
     
    3939                } // if
    4040                return typeInst;
    41     }
     41        }
    4242
    43     Expression * ScrubTyVars::mutate( SizeofExpr *szeof ) {
     43        Expression * ScrubTyVars::mutate( SizeofExpr *szeof ) {
    4444                // sizeof( T ) => T parameter, which is the size of T
    4545                if ( TypeInstType *typeInst = dynamic_cast< TypeInstType * >( szeof->get_type() ) ) {
     
    4949                        return Mutator::mutate( szeof );
    5050                } // if
    51     }
     51        }
    5252
    53     Type * ScrubTyVars::mutate( PointerType *pointer ) {
     53        Type * ScrubTyVars::mutate( PointerType *pointer ) {
    5454                if ( TypeInstType *typeInst = dynamic_cast< TypeInstType * >( pointer->get_base() ) ) {
    5555                        if ( doAll || tyVars.find( typeInst->get_name() ) != tyVars.end() ) {
     
    6262                } // if
    6363                return Mutator::mutate( pointer );
    64     }
     64        }
    6565} // namespace GenPoly
    6666
Note: See TracChangeset for help on using the changeset viewer.