Changeset 954c954 for src/SymTab
- Timestamp:
- Sep 24, 2020, 3:56:16 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 6cc913e
- Parents:
- eccb14d
- Location:
- src/SymTab
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Mangler.cc
reccb14d r954c954 551 551 GuardValue( inFunctionType ); 552 552 inFunctionType = true; 553 std::vector< ast::ptr< ast::Type > > returnTypes = getTypes( functionType->returns ); 554 if (returnTypes.empty()) mangleName << Encoding::void_t; 555 else accept_each( returnTypes, *visitor ); 553 if (functionType->returns.empty()) mangleName << Encoding::void_t; 554 else accept_each( functionType->returns, *visitor ); 556 555 mangleName << "_"; 557 std::vector< ast::ptr< ast::Type > > paramTypes = getTypes( functionType->params ); 558 accept_each( paramTypes, *visitor ); 556 accept_each( functionType->params, *visitor ); 559 557 mangleName << "_"; 560 558 } -
src/SymTab/Validate.cc
reccb14d r954c954 1384 1384 /// Replaces enum types by int, and function/array types in function parameter and return 1385 1385 /// lists by appropriate pointers 1386 /* 1386 1387 struct EnumAndPointerDecay_new { 1387 1388 const ast::EnumDecl * previsit( const ast::EnumDecl * enumDecl ) { … … 1434 1435 } 1435 1436 }; 1437 */ 1436 1438 1437 1439 /// expand assertions from a trait instance, performing appropriate type variable substitutions … … 1837 1839 const ast::Type * validateType( 1838 1840 const CodeLocation & loc, const ast::Type * type, const ast::SymbolTable & symtab ) { 1839 ast::Pass< EnumAndPointerDecay_new > epc;1841 // ast::Pass< EnumAndPointerDecay_new > epc; 1840 1842 ast::Pass< LinkReferenceToTypes_new > lrt{ loc, symtab }; 1841 1843 ast::Pass< ForallPointerDecay_new > fpd{ loc }; 1842 1844 1843 return type->accept( epc )->accept(lrt )->accept( fpd );1845 return type->accept( lrt )->accept( fpd ); 1844 1846 } 1845 1847
Note: See TracChangeset
for help on using the changeset viewer.