Changes in src/Concurrency/Keywords.cc [ba3706f:bd41764]
- File:
-
- 1 edited
-
src/Concurrency/Keywords.cc (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Concurrency/Keywords.cc
rba3706f rbd41764 38 38 39 39 namespace Concurrency { 40 41 namespace { 42 const std::list<Label> noLabels; 43 const std::list< Attribute * > noAttributes; 44 Type::StorageClasses noStorage; 45 Type::Qualifiers noQualifiers; 46 } 47 40 48 //============================================================================================= 41 49 // Pass declarations … … 288 296 ObjectDecl * this_decl = new ObjectDecl( 289 297 "this", 290 noStorage Classes,298 noStorage, 291 299 LinkageSpec::Cforall, 292 300 nullptr, … … 305 313 new ObjectDecl( 306 314 "ret", 307 noStorage Classes,315 noStorage, 308 316 LinkageSpec::Cforall, 309 317 nullptr, … … 338 346 main_decl = new FunctionDecl( 339 347 "main", 340 noStorage Classes,348 noStorage, 341 349 LinkageSpec::Cforall, 342 350 main_type, … … 355 363 ObjectDecl * field = new ObjectDecl( 356 364 field_name, 357 noStorage Classes,365 noStorage, 358 366 LinkageSpec::Cforall, 359 367 nullptr, … … 371 379 372 380 void ConcurrentSueKeyword::addRoutines( ObjectDecl * field, FunctionDecl * func ) { 373 CompoundStmt * statement = new CompoundStmt( );381 CompoundStmt * statement = new CompoundStmt( noLabels ); 374 382 statement->push_back( 375 383 new ReturnStmt( 384 noLabels, 376 385 new AddressExpr( 377 386 new MemberExpr( … … 479 488 ObjectDecl * monitors = new ObjectDecl( 480 489 "__monitor", 481 noStorage Classes,490 noStorage, 482 491 LinkageSpec::Cforall, 483 492 nullptr, … … 500 509 // monitor_guard_t __guard = { __monitors, #, func }; 501 510 body->push_front( 502 new DeclStmt( n ew ObjectDecl(511 new DeclStmt( noLabels, new ObjectDecl( 503 512 "__guard", 504 noStorage Classes,513 noStorage, 505 514 LinkageSpec::Cforall, 506 515 nullptr, … … 521 530 522 531 //monitor_desc * __monitors[] = { get_monitor(a), get_monitor(b) }; 523 body->push_front( new DeclStmt( monitors) );532 body->push_front( new DeclStmt( noLabels, monitors) ); 524 533 } 525 534 … … 527 536 ObjectDecl * monitors = new ObjectDecl( 528 537 "__monitors", 529 noStorage Classes,538 noStorage, 530 539 LinkageSpec::Cforall, 531 540 nullptr, … … 560 569 // monitor_guard_t __guard = { __monitors, #, func }; 561 570 body->push_front( 562 new DeclStmt( n ew ObjectDecl(571 new DeclStmt( noLabels, new ObjectDecl( 563 572 "__guard", 564 noStorage Classes,573 noStorage, 565 574 LinkageSpec::Cforall, 566 575 nullptr, … … 582 591 583 592 //monitor_desc * __monitors[] = { get_monitor(a), get_monitor(b) }; 584 body->push_front( new DeclStmt( monitors) );593 body->push_front( new DeclStmt( noLabels, monitors) ); 585 594 } 586 595 … … 622 631 stmt->push_back( 623 632 new ExprStmt( 633 noLabels, 624 634 new UntypedExpr( 625 635 new NameExpr( "__thrd_start" ),
Note:
See TracChangeset
for help on using the changeset viewer.