Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Validate.cc

    r16ba4a6f r954c954  
    6464#include "Common/UniqueName.h"         // for UniqueName
    6565#include "Common/utility.h"            // for operator+, cloneAll, deleteAll
    66 #include "CompilationState.h"          // skip some passes in new-ast build
    6766#include "Concurrency/Keywords.h"      // for applyKeywords
    6867#include "FixFunction.h"               // for FixFunction
     
    282281
    283282                void previsit( ObjectDecl * objDecl );
    284                 // void previsit( ArrayType * arrayType );
     283                void previsit( ArrayType * arrayType );
    285284        };
    286285
     
    369368                                mutateAll( translationUnit, compoundliteral );
    370369                        });
    371                         if (!useNewAST) {
    372                                 Stats::Time::TimeBlock("Resolve With Expressions", [&]() {
    373                                         ResolvExpr::resolveWithExprs( translationUnit ); // must happen before FixObjectType because user-code is resolved and may contain with variables
    374                                 });
    375                         }
     370                        Stats::Time::TimeBlock("Resolve With Expressions", [&]() {
     371                                ResolvExpr::resolveWithExprs( translationUnit ); // must happen before FixObjectType because user-code is resolved and may contain with variables
     372                        });
    376373                }
    377374                {
    378375                        Stats::Heap::newPass("validate-F");
    379376                        Stats::Time::BlockGuard guard("validate-F");
    380                         if (!useNewAST) {
    381                                 Stats::Time::TimeCall("Fix Object Type",
    382                                         FixObjectType::fix, translationUnit);
    383                         }
     377                        Stats::Time::TimeCall("Fix Object Type",
     378                                FixObjectType::fix, translationUnit);
    384379                        Stats::Time::TimeCall("Array Length",
    385380                                ArrayLength::computeLength, translationUnit);
     
    388383                        Stats::Time::TimeCall("Fix Label Address",
    389384                                mutateAll<LabelAddressFixer>, translationUnit, labelAddrFixer);
    390                         if (!useNewAST) {
    391                                 Stats::Time::TimeCall("Handle Attributes",
    392                                         Validate::handleAttributes, translationUnit);
    393                         }
     385                        Stats::Time::TimeCall("Handle Attributes",
     386                                Validate::handleAttributes, translationUnit);
    394387                }
    395388        }
     
    13461339        }
    13471340
    1348         // xxx - this seems to be in HoistArrayDimension now.
    1349 
    1350         /*
    13511341        void ArrayLength::previsit( ArrayType * type ) {
    13521342                if ( type->dimension ) {
     
    13601350                }
    13611351        }
    1362         */
    13631352
    13641353        struct LabelFinder {
Note: See TracChangeset for help on using the changeset viewer.