Changeset e220391 for src/SymTab
- Timestamp:
- Oct 20, 2017, 10:19:57 AM (7 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:
- 2e30d47, 70529dc
- Parents:
- a15b72c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Autogen.cc
ra15b72c re220391 311 311 void FuncGenerator::generatePrototypes( std::list< FunctionDecl * > & newFuncs ) { 312 312 bool concurrent_type = isConcurrentType(); 313 for ( const FuncData & d ata: data ) {313 for ( const FuncData & d : data ) { 314 314 // generate a function (?{}, ?=?, ^?{}) based on the current FuncData. 315 FunctionType * ftype = d ata.genType( type );315 FunctionType * ftype = d.genType( type ); 316 316 317 317 // destructor for concurrent type must be mutex 318 if ( concurrent_type && CodeGen::isDestructor( d ata.fname ) ) {318 if ( concurrent_type && CodeGen::isDestructor( d.fname ) ) { 319 319 ftype->parameters.front()->get_type()->set_mutex( true ); 320 320 } 321 321 322 newFuncs.push_back( genFunc( d ata.fname, ftype, functionNesting ) );322 newFuncs.push_back( genFunc( d.fname, ftype, functionNesting ) ); 323 323 } 324 324 }
Note: See TracChangeset
for help on using the changeset viewer.