Changeset 16ba4a6f for src/SymTab
- Timestamp:
- Nov 10, 2020, 12:20:37 AM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 18f0b70
- Parents:
- 3febb2d
- Location:
- src/SymTab
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Autogen.cc
r3febb2d r16ba4a6f 38 38 #include "SynTree/Type.h" // for FunctionType, Type, TypeInstType 39 39 #include "SynTree/Visitor.h" // for maybeAccept, Visitor, acceptAll 40 #include "CompilationState.h" 40 41 41 42 class Attribute; -
src/SymTab/Autogen.h
r3febb2d r16ba4a6f 167 167 fExpr->args.emplace_back( dstParam ); 168 168 169 const ast::Stmt *listInit = srcParam.buildListInit( fExpr );169 ast::ptr<ast::Stmt> listInit = srcParam.buildListInit( fExpr ); 170 170 171 171 // fetch next set of arguments -
src/SymTab/Validate.cc
r3febb2d r16ba4a6f 64 64 #include "Common/UniqueName.h" // for UniqueName 65 65 #include "Common/utility.h" // for operator+, cloneAll, deleteAll 66 #include "CompilationState.h" // skip some passes in new-ast build 66 67 #include "Concurrency/Keywords.h" // for applyKeywords 67 68 #include "FixFunction.h" // for FixFunction … … 281 282 282 283 void previsit( ObjectDecl * objDecl ); 283 void previsit( ArrayType * arrayType );284 // void previsit( ArrayType * arrayType ); 284 285 }; 285 286 … … 368 369 mutateAll( translationUnit, compoundliteral ); 369 370 }); 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 }); 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 } 373 376 } 374 377 { 375 378 Stats::Heap::newPass("validate-F"); 376 379 Stats::Time::BlockGuard guard("validate-F"); 377 Stats::Time::TimeCall("Fix Object Type", 378 FixObjectType::fix, translationUnit); 380 if (!useNewAST) { 381 Stats::Time::TimeCall("Fix Object Type", 382 FixObjectType::fix, translationUnit); 383 } 379 384 Stats::Time::TimeCall("Array Length", 380 385 ArrayLength::computeLength, translationUnit); … … 383 388 Stats::Time::TimeCall("Fix Label Address", 384 389 mutateAll<LabelAddressFixer>, translationUnit, labelAddrFixer); 385 Stats::Time::TimeCall("Handle Attributes", 386 Validate::handleAttributes, translationUnit); 390 if (!useNewAST) { 391 Stats::Time::TimeCall("Handle Attributes", 392 Validate::handleAttributes, translationUnit); 393 } 387 394 } 388 395 } … … 1339 1346 } 1340 1347 1348 // xxx - this seems to be in HoistArrayDimension now. 1349 1350 /* 1341 1351 void ArrayLength::previsit( ArrayType * type ) { 1342 1352 if ( type->dimension ) { … … 1350 1360 } 1351 1361 } 1362 */ 1352 1363 1353 1364 struct LabelFinder {
Note: See TracChangeset
for help on using the changeset viewer.