Changeset 43c89a7 for src/SymTab
- Timestamp:
- Feb 24, 2017, 3:58:03 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 167a9c8
- Parents:
- 24cde55
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Validate.cc
r24cde55 r43c89a7 10 10 // Created On : Sun May 17 21:50:04 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 2 17:47:54201713 // Update Count : 31 212 // Last Modified On : Thu Feb 23 21:33:55 2017 13 // Update Count : 318 14 14 // 15 15 … … 629 629 } else { 630 630 TypeDeclMap::const_iterator base = typedeclNames.find( typeInst->get_name() ); 631 assertf( base != typedeclNames.end(), "Can't find name %s", typeInst->get_name().c_str() );631 assertf( base != typedeclNames.end(), "Can't find typedecl name %s", typeInst->get_name().c_str() ); 632 632 typeInst->set_baseType( base->second ); 633 633 } // if … … 660 660 // Note, qualifiers on the typedef are superfluous for the forward declaration. 661 661 if ( StructInstType *aggDecl = dynamic_cast< StructInstType * >( tyDecl->get_base() ) ) { 662 return new StructDecl( aggDecl->get_name() );662 return aggDecl->get_baseStruct() ? Mutator::mutate( aggDecl->get_baseStruct() ) : new StructDecl( aggDecl->get_name() ); 663 663 } else if ( UnionInstType *aggDecl = dynamic_cast< UnionInstType * >( tyDecl->get_base() ) ) { 664 return new UnionDecl( aggDecl->get_name() );664 return aggDecl->get_baseUnion() ? Mutator::mutate( aggDecl->get_baseUnion() ) : new UnionDecl( aggDecl->get_name() ); 665 665 } else if ( EnumInstType *enumDecl = dynamic_cast< EnumInstType * >( tyDecl->get_base() ) ) { 666 666 return new EnumDecl( enumDecl->get_name() ); … … 732 732 } 733 733 734 // there may be typedefs nested within aggregates in order for everything to work properly, these should be removed734 // there may be typedefs nested within aggregates. in order for everything to work properly, these should be removed 735 735 // as well 736 736 template<typename AggDecl>
Note:
See TracChangeset
for help on using the changeset viewer.