Changeset 136ccd7 for src/SymTab
- Timestamp:
- Nov 3, 2017, 3:01:31 PM (7 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 4ee36bf0
- Parents:
- 4ee1efb (diff), 760ba67 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- src/SymTab
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Autogen.cc
r4ee1efb r136ccd7 699 699 if ( TypeInstType * ty = dynamic_cast< TypeInstType * >( t ) ) { 700 700 if ( ! done.count( ty->get_baseType() ) ) { 701 TypeDecl * newDecl = new TypeDecl( ty->get_baseType()->get_name(), Type::StorageClasses(), nullptr, TypeDecl:: Any);701 TypeDecl * newDecl = new TypeDecl( ty->get_baseType()->get_name(), Type::StorageClasses(), nullptr, TypeDecl::Dtype, true ); 702 702 TypeInstType * inst = new TypeInstType( Type::Qualifiers(), newDecl->get_name(), newDecl ); 703 703 newDecl->get_assertions().push_back( new FunctionDecl( "?=?", Type::StorageClasses(), LinkageSpec::Cforall, genAssignType( inst ), nullptr, -
src/SymTab/Mangler.cc
r4ee1efb r136ccd7 214 214 numStream << varNum->second.first; 215 215 switch ( (TypeDecl::Kind )varNum->second.second ) { 216 case TypeDecl::Any:217 mangleName << "t";218 break;219 216 case TypeDecl::Dtype: 220 217 mangleName << "d"; … … 274 271 for ( Type::ForallList::iterator i = type->forall.begin(); i != type->forall.end(); ++i ) { 275 272 switch ( (*i)->get_kind() ) { 276 case TypeDecl::Any:277 tcount++;278 break;279 273 case TypeDecl::Dtype: 280 274 dcount++;
Note: See TracChangeset
for help on using the changeset viewer.