Changeset 298fe57 for src/main.cc


Ignore:
Timestamp:
Apr 29, 2022, 1:30:49 PM (2 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
Children:
4cb1a24
Parents:
ffef246
Message:

Translated 3/4 of validate_B. Link Reference To Types has been removed and will be translated after we know how much support we need for forall function pointers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cc

    rffef246 r298fe57  
    1010// Created On       : Fri May 15 23:12:02 2015
    1111// Last Modified By : Andrew Beach
    12 // Last Modified On : Wed Apr 13 11:11:00 2022
    13 // Update Count     : 672
     12// Last Modified On : Fri Apr 29  9:52:00 2022
     13// Update Count     : 673
    1414//
    1515
     
    7575#include "Tuples/Tuples.h"                  // for expandMemberTuples, expan...
    7676#include "Validate/Autogen.hpp"             // for autogenerateRoutines
     77#include "Validate/CompoundLiteral.hpp"     // for handleCompoundLiterals
     78#include "Validate/EliminateTypedef.hpp"    // for eliminateTypedef
     79#include "Validate/FindSpecialDecls.h"      // for findGlobalDecls
     80#include "Validate/FixQualifiedTypes.hpp"   // for fixQualifiedTypes
     81#include "Validate/ForallPointerDecay.hpp"  // for decayForallPointers
    7782#include "Validate/GenericParameter.hpp"    // for fillGenericParameters, tr...
    78 #include "Validate/FindSpecialDecls.h"      // for findGlobalDecls
    79 #include "Validate/ForallPointerDecay.hpp"  // for decayForallPointers
    80 #include "Validate/CompoundLiteral.hpp"     // for handleCompoundLiterals
     83#include "Validate/HoistStruct.hpp"         // for hoistStruct
    8184#include "Validate/InitializerLength.hpp"   // for setLengthFromInitializer
    8285#include "Validate/LabelAddressFixer.hpp"   // for fixLabelAddresses
     86#include "Validate/LinkReferenceToTypes.hpp"// for linkReferenceToTypes
    8387#include "Validate/ReturnCheck.hpp"         // for checkReturnStatements
    8488#include "Virtual/ExpandCasts.h"            // for expandCasts
     
    328332                // add the assignment statement after the initialization of a type parameter
    329333                PASS( "Validate-A", SymTab::validate_A( translationUnit ) );
    330                 PASS( "Validate-B", SymTab::validate_B( translationUnit ) );
     334
     335                // Must happen before auto-gen, because it uses the sized flag.
     336                PASS( "Link Reference To Types", SymTab::linkReferenceToTypes( translationUnit ) );
    331337
    332338                CodeTools::fillLocations( translationUnit );
     
    342348
    343349                        forceFillCodeLocations( transUnit );
     350
     351                        // Must happen after Link References To Types,
     352                        // because aggregate members are accessed.
     353                        PASS( "Fix Qualified Types", Validate::fixQualifiedTypes( transUnit ) );
     354
     355                        PASS( "Hoist Struct", Validate::hoistStruct( transUnit ) );
     356                        PASS( "Eliminate Typedef", Validate::eliminateTypedef( transUnit ) );
    344357
    345358                        // Check as early as possible. Can't happen before
     
    438451                        translationUnit = convert( move( transUnit ) );
    439452                } else {
     453                        PASS( "Validate-B", SymTab::validate_B( translationUnit ) );
    440454                        PASS( "Validate-C", SymTab::validate_C( translationUnit ) );
    441455                        PASS( "Validate-D", SymTab::validate_D( translationUnit ) );
Note: See TracChangeset for help on using the changeset viewer.