Changes in src/main.cc [9e23b446:b9f8274]
- File:
-
- 1 edited
-
src/main.cc (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/main.cc
r9e23b446 rb9f8274 10 10 // Created On : Fri May 15 23:12:02 2015 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Tue Ju n 7 13:29:00 202213 // Update Count : 67 412 // Last Modified On : Tue Jul 12 12:02:00 2022 13 // Update Count : 675 14 14 // 15 15 … … 78 78 #include "Validate/CompoundLiteral.hpp" // for handleCompoundLiterals 79 79 #include "Validate/EliminateTypedef.hpp" // for eliminateTypedef 80 #include "Validate/EnumAndPointerDecay.hpp" // for decayEnumsAndPointers 80 81 #include "Validate/FindSpecialDecls.h" // for findGlobalDecls 81 82 #include "Validate/FixQualifiedTypes.hpp" // for fixQualifiedTypes 83 #include "Validate/FixReturnTypes.hpp" // for fixReturnTypes 82 84 #include "Validate/ForallPointerDecay.hpp" // for decayForallPointers 83 85 #include "Validate/GenericParameter.hpp" // for fillGenericParameters, tr... 84 86 #include "Validate/HoistStruct.hpp" // for hoistStruct 87 #include "Validate/HoistTypeDecls.hpp" // for hoistTypeDecls 85 88 #include "Validate/InitializerLength.hpp" // for setLengthFromInitializer 86 89 #include "Validate/LabelAddressFixer.hpp" // for fixLabelAddresses 90 #include "Validate/LinkReferenceToTypes.hpp" // for linkReferenceToTypes 91 #include "Validate/ReplaceTypedef.hpp" // for replaceTypedef 87 92 #include "Validate/ReturnCheck.hpp" // for checkReturnStatements 93 #include "Validate/VerifyCtorDtorAssign.hpp" // for verifyCtorDtorAssign 88 94 #include "Virtual/ExpandCasts.h" // for expandCasts 89 95 … … 330 336 } // if 331 337 332 // add the assignment statement after the initialization of a type parameter333 PASS( "Validate-A", SymTab::validate_A( translationUnit ) );334 335 // Must happen before auto-gen, because it uses the sized flag.336 PASS( "Link Reference To Types", SymTab::linkReferenceToTypes( translationUnit ) );337 338 338 CodeTools::fillLocations( translationUnit ); 339 339 … … 348 348 349 349 forceFillCodeLocations( transUnit ); 350 351 // Must happen before auto-gen, or anything that examines ops. 352 PASS( "Verify Ctor, Dtor & Assign", Validate::verifyCtorDtorAssign( transUnit ) ); 353 354 PASS( "Hoist Type Decls", Validate::hoistTypeDecls( transUnit ) ); 355 // Hoist Type Decls pulls some declarations out of contexts where 356 // locations are not tracked. Perhaps they should be, but for now 357 // the full fill solves it. 358 forceFillCodeLocations( transUnit ); 359 360 PASS( "Replace Typedefs", Validate::replaceTypedef( transUnit ) ); 361 362 // Must happen before auto-gen. 363 PASS( "Fix Return Types", Validate::fixReturnTypes( transUnit ) ); 364 365 // Must happen before Link Reference to Types, it needs correct 366 // types for mangling. 367 PASS( "Enum and Pointer Decay", Validate::decayEnumsAndPointers( transUnit ) ); 368 369 // Must happen before auto-gen, because it uses the sized flag. 370 PASS( "Link Reference To Types", Validate::linkReferenceToTypes( transUnit ) ); 350 371 351 372 // Must happen after Link References To Types, … … 449 470 PASS( "Translate Tries", ControlStruct::translateTries( transUnit ) ); 450 471 PASS( "Gen Waitfor", Concurrency::generateWaitFor( transUnit ) ); 451 PASS( "Convert Specializations", GenPoly::convertSpecializations( transUnit ) ); // needs to happen before tuple types are expanded452 453 472 454 473 translationUnit = convert( move( transUnit ) ); 455 474 } else { 456 PASS( "Validate-B", SymTab::validate_B( translationUnit ) ); 457 PASS( "Validate-C", SymTab::validate_C( translationUnit ) ); 458 PASS( "Validate-D", SymTab::validate_D( translationUnit ) ); 459 PASS( "Validate-E", SymTab::validate_E( translationUnit ) ); 460 PASS( "Validate-F", SymTab::validate_F( translationUnit ) ); 475 // add the assignment statement after the initialization of a type parameter 476 PASS( "Validate", SymTab::validate( translationUnit ) ); 461 477 462 478 if ( symtabp ) { … … 522 538 PASS( "Translate Tries", ControlStruct::translateTries( translationUnit ) ); 523 539 PASS( "Gen Waitfor", Concurrency::generateWaitFor( translationUnit ) ); 524 PASS( "Convert Specializations", GenPoly::convertSpecializations( translationUnit ) ); // needs to happen before tuple types are expanded525 526 540 } 527 541 528 529 // PASS( "Convert Specializations", GenPoly::convertSpecializations( translationUnit ) ); // needs to happen before tuple types are expanded 542 PASS( "Convert Specializations", GenPoly::convertSpecializations( translationUnit ) ); // needs to happen before tuple types are expanded 530 543 531 544 PASS( "Expand Tuples", Tuples::expandTuples( translationUnit ) ); // xxx - is this the right place for this?
Note:
See TracChangeset
for help on using the changeset viewer.