Changes in / [6d2b3dc:39cf5cc]


Ignore:
Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/Validate/ImplementEnumFunc.hpp

    r6d2b3dc r39cf5cc  
    22
    33namespace ast {
    4     class TranslationUnit;
     4        class TranslationUnit;
    55}
    66
    77namespace Validate {
    8     void implementEnumFunc( ast::TranslationUnit & translationUnit );
     8
     9/// Auto-Generation of enumeration functions.
     10/// Happens before fixReturnStatements because it inserts "unfixed" returns.
     11void implementEnumFunc( ast::TranslationUnit & translationUnit );
     12
    913}
  • src/main.cpp

    r6d2b3dc r39cf5cc  
    320320                PASS( "Forall Pointer Decay", Validate::decayForallPointers, transUnit );
    321321                PASS( "Fix Qualified Types", Validate::fixQualifiedTypes, transUnit );
    322 
    323322                PASS( "Eliminate Typedef", Validate::eliminateTypedef, transUnit );
    324323                PASS( "Hoist Struct", Validate::hoistStruct, transUnit );
     
    326325                PASS( "Translate Enum Range Expression", ControlStruct::translateEnumRange, transUnit );
    327326                PASS( "Translate Dimensions", Validate::translateDimensionParameters, transUnit );
    328                 // Need to happen before fixing returns because implementEnumFunc has ReturnStmt
    329                
    330327                PASS( "Generate Enum Attributes Functions", Validate::implementEnumFunc, transUnit );
    331328                PASS( "Check Function Returns", Validate::checkReturnStatements, transUnit );
     
    337334
    338335                PASS( "Generate Autogen Routines", Validate::autogenerateRoutines, transUnit );
    339                
     336
    340337                PASS( "Implement Actors", Concurrency::implementActors, transUnit );
    341338                PASS( "Implement Virtual Destructors", Virtual::implementVirtDtors, transUnit );
     
    456453                return EXIT_FAILURE;
    457454        } // try
     455
     456        // This pseudo-pass is used to get more accurate heap statistics.
     457        NewPass("Clean-up");
     458        Stats::Time::StartBlock("Clean-Up");
     459        transUnit.global = ast::TranslationGlobal();
     460        transUnit.decls.clear();
     461        Stats::Time::StopBlock();
    458462
    459463        Stats::print();
Note: See TracChangeset for help on using the changeset viewer.