Changes in src/main.cc [11df881:b9f8274]
- File:
-
- 1 edited
-
src/main.cc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/main.cc
r11df881 rb9f8274 10 10 // Created On : Fri May 15 23:12:02 2015 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Mon Jul 18 11:08:00 202213 // Update Count : 67 612 // Last Modified On : Tue Jul 12 12:02:00 2022 13 // Update Count : 675 14 14 // 15 15 … … 330 330 Stats::Time::StopBlock(); 331 331 332 PASS( "Translate Exception Declarations", ControlStruct::translateExcept( translationUnit ) ); 333 if ( exdeclp ) { 334 dump( translationUnit ); 335 return EXIT_SUCCESS; 336 } // if 337 338 CodeTools::fillLocations( translationUnit ); 339 332 340 if( useNewAST ) { 341 CodeTools::fillLocations( translationUnit ); 342 333 343 if (Stats::Counters::enabled) { 334 344 ast::pass_visitor_stats.avg = Stats::Counters::build<Stats::Counters::AverageCounter<double>>("Average Depth - New"); … … 339 349 forceFillCodeLocations( transUnit ); 340 350 341 PASS( "Translate Exception Declarations", ControlStruct::translateExcept( transUnit ) ); 342 if ( exdeclp ) { 343 dump( move( transUnit ) ); 344 return EXIT_SUCCESS; 345 } 346 351 // Must happen before auto-gen, or anything that examines ops. 347 352 PASS( "Verify Ctor, Dtor & Assign", Validate::verifyCtorDtorAssign( transUnit ) ); 353 348 354 PASS( "Hoist Type Decls", Validate::hoistTypeDecls( transUnit ) ); 349 355 // Hoist Type Decls pulls some declarations out of contexts where … … 353 359 354 360 PASS( "Replace Typedefs", Validate::replaceTypedef( transUnit ) ); 361 362 // Must happen before auto-gen. 355 363 PASS( "Fix Return Types", Validate::fixReturnTypes( transUnit ) ); 364 365 // Must happen before Link Reference to Types, it needs correct 366 // types for mangling. 356 367 PASS( "Enum and Pointer Decay", Validate::decayEnumsAndPointers( transUnit ) ); 357 368 369 // Must happen before auto-gen, because it uses the sized flag. 358 370 PASS( "Link Reference To Types", Validate::linkReferenceToTypes( transUnit ) ); 359 371 372 // Must happen after Link References To Types, 373 // because aggregate members are accessed. 360 374 PASS( "Fix Qualified Types", Validate::fixQualifiedTypes( transUnit ) ); 375 361 376 PASS( "Hoist Struct", Validate::hoistStruct( transUnit ) ); 362 377 PASS( "Eliminate Typedef", Validate::eliminateTypedef( transUnit ) ); 378 379 // Check as early as possible. Can't happen before 380 // LinkReferenceToType, observed failing when attempted 381 // before eliminateTypedef 363 382 PASS( "Validate Generic Parameters", Validate::fillGenericParameters( transUnit ) ); 383 364 384 PASS( "Translate Dimensions", Validate::translateDimensionParameters( transUnit ) ); 365 385 PASS( "Check Function Returns", Validate::checkReturnStatements( transUnit ) ); 386 387 // Must happen before Autogen. 366 388 PASS( "Fix Return Statements", InitTweak::fixReturnStatements( transUnit ) ); 389 367 390 PASS( "Implement Concurrent Keywords", Concurrency::implementKeywords( transUnit ) ); 391 392 // Must be after implement concurrent keywords; because uniqueIds 393 // must be set on declaration before resolution. 394 // Must happen before autogen routines are added. 368 395 PASS( "Forall Pointer Decay", Validate::decayForallPointers( transUnit ) ); 396 397 // Must happen before autogen routines are added. 369 398 PASS( "Hoist Control Declarations", ControlStruct::hoistControlDecls( transUnit ) ); 370 399 400 // Must be after enum and pointer decay. 401 // Must be before compound literals. 371 402 PASS( "Generate Autogen Routines", Validate::autogenerateRoutines( transUnit ) ); 372 403 … … 442 473 translationUnit = convert( move( transUnit ) ); 443 474 } else { 444 PASS( "Translate Exception Declarations", ControlStruct::translateExcept( translationUnit ) );445 if ( exdeclp ) {446 dump( translationUnit );447 return EXIT_SUCCESS;448 } // if449 450 475 // add the assignment statement after the initialization of a type parameter 451 476 PASS( "Validate", SymTab::validate( translationUnit ) );
Note:
See TracChangeset
for help on using the changeset viewer.