Changeset a32b204 for translator/SymTab/ImplementationType.cc
- Timestamp:
- May 17, 2015, 1:19:35 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:
- 0dd3a2f
- Parents:
- b87a5ed
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/SymTab/ImplementationType.cc
rb87a5ed ra32b204 45 45 ImplementationType implementor( indexer ); 46 46 type->accept( implementor ); 47 if ( implementor.get_result() == 0 ) {47 if ( implementor.get_result() == 0 ) { 48 48 return type->clone(); 49 49 } else { … … 87 87 { 88 88 /// FunctionType *newType = functionType->clone(); 89 /// for ( std::list< DeclarationWithType* >::iterator i = newType->get_parameters().begin(); i != newType->get_parameters().end(); ++i ) {89 /// for ( std::list< DeclarationWithType* >::iterator i = newType->get_parameters().begin(); i != newType->get_parameters().end(); ++i ) { 90 90 /// i->set_type( implementationType( i->get_type(), indexer ) ); 91 91 /// } 92 /// for ( std::list< DeclarationWithType* >::iterator i = newType->get_parameters().begin(); i != newType->get_parameters().end(); ++i ) {92 /// for ( std::list< DeclarationWithType* >::iterator i = newType->get_parameters().begin(); i != newType->get_parameters().end(); ++i ) { 93 93 /// i->set_type( implementationType( i->get_type(), indexer ) ); 94 94 /// } … … 119 119 { 120 120 NamedTypeDecl *typeDecl = indexer.lookupType( inst->get_name() ); 121 if ( typeDecl && typeDecl->get_base() ) {121 if ( typeDecl && typeDecl->get_base() ) { 122 122 Type *base = implementationType( typeDecl->get_base(), indexer ); 123 123 base->get_qualifiers() += inst->get_qualifiers(); … … 130 130 { 131 131 TupleType *newType = new TupleType( Type::Qualifiers() ); 132 for ( std::list< Type* >::iterator i = tupleType->get_types().begin(); i != tupleType->get_types().end(); ++i ) {132 for ( std::list< Type* >::iterator i = tupleType->get_types().begin(); i != tupleType->get_types().end(); ++i ) { 133 133 Type *implType = implementationType( *i, indexer ); 134 134 implType->get_qualifiers() += tupleType->get_qualifiers();
Note: See TracChangeset
for help on using the changeset viewer.