Changeset a08ba92 for translator/GenPoly/ScrubTyVars.cc
- Timestamp:
- May 19, 2015, 4:58:14 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:
- 843054c2
- Parents:
- 01aeade
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/GenPoly/ScrubTyVars.cc
r01aeade ra08ba92 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue May 19 07:47:31201513 // Update Count : 112 // Last Modified On : Tue May 19 16:42:42 2015 13 // Update Count : 2 14 14 // 15 15 … … 22 22 23 23 namespace GenPoly { 24 24 Type * ScrubTyVars::mutate( TypeInstType *typeInst ) { 25 25 TyVarMap::const_iterator tyVar = tyVars.find( typeInst->get_name() ); 26 26 if ( doAll || tyVar != tyVars.end() ) { … … 39 39 } // if 40 40 return typeInst; 41 41 } 42 42 43 43 Expression * ScrubTyVars::mutate( SizeofExpr *szeof ) { 44 44 // sizeof( T ) => T parameter, which is the size of T 45 45 if ( TypeInstType *typeInst = dynamic_cast< TypeInstType * >( szeof->get_type() ) ) { … … 49 49 return Mutator::mutate( szeof ); 50 50 } // if 51 51 } 52 52 53 53 Type * ScrubTyVars::mutate( PointerType *pointer ) { 54 54 if ( TypeInstType *typeInst = dynamic_cast< TypeInstType * >( pointer->get_base() ) ) { 55 55 if ( doAll || tyVars.find( typeInst->get_name() ) != tyVars.end() ) { … … 62 62 } // if 63 63 return Mutator::mutate( pointer ); 64 64 } 65 65 } // namespace GenPoly 66 66
Note: See TracChangeset
for help on using the changeset viewer.