Changeset 2f42718 for src/Concurrency
- Timestamp:
- Feb 22, 2019, 10:43:29 AM (7 years ago)
- Branches:
- no_list
- Parents:
- 43e0949
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Concurrency/Keywords.cc
r43e0949 r2f42718 337 337 ); 338 338 339 get_type-> get_parameters().push_back( this_decl->clone() );340 get_type-> get_returnVals().push_back(339 get_type->parameters.push_back( this_decl->clone() ); 340 get_type->returnVals.push_back( 341 341 new ObjectDecl( 342 342 "ret", … … 371 371 FunctionType * main_type = new FunctionType( noQualifiers, false ); 372 372 373 main_type-> get_parameters().push_back( this_decl->clone() );373 main_type->parameters.push_back( this_decl->clone() ); 374 374 375 375 main_decl = new FunctionDecl( … … 405 405 ); 406 406 407 decl-> get_members().push_back( field );407 decl->members.push_back( field ); 408 408 409 409 return field; … … 418 418 field, 419 419 new CastExpr( 420 new VariableExpr( func->get_functionType()-> get_parameters().front() ),421 func->get_functionType()-> get_parameters().front()->get_type()->stripReferences()->clone()420 new VariableExpr( func->get_functionType()->parameters.front() ), 421 func->get_functionType()->parameters.front()->get_type()->stripReferences()->clone() 422 422 ) 423 423 ) … … 449 449 // If this is the destructor for a monitor it must be mutex 450 450 if(isDtor) { 451 Type* ty = decl->get_functionType()-> get_parameters().front()->get_type();451 Type* ty = decl->get_functionType()->parameters.front()->get_type(); 452 452 453 453 // If it's a copy, it's not a mutex … … 483 483 484 484 // Check if we need to instrument the body 485 CompoundStmt* body = decl-> get_statements();485 CompoundStmt* body = decl->statements; 486 486 if( ! body ) return; 487 487 … … 519 519 520 520 bool once = true; 521 for( auto arg : decl->get_functionType()-> get_parameters()) {521 for( auto arg : decl->get_functionType()->parameters) { 522 522 //Find mutex arguments 523 523 Type* ty = arg->get_type(); … … 681 681 } 682 682 683 DeclarationWithType * param = decl->get_functionType()-> get_parameters().front();683 DeclarationWithType * param = decl->get_functionType()->parameters.front(); 684 684 auto type = dynamic_cast< StructInstType * >( InitTweak::getPointerBase( param->get_type() ) ); 685 685 if( type && type->get_baseStruct()->is_thread() ) {
Note:
See TracChangeset
for help on using the changeset viewer.