Changeset 72e76fd
- Timestamp:
- Jun 28, 2022, 3:07:04 PM (3 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
- Children:
- d7af839
- Parents:
- 43aec9e
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Validate.cc
r43aec9e r72e76fd 312 312 Stats::Heap::newPass("validate-B"); 313 313 Stats::Time::BlockGuard guard("validate-B"); 314 //linkReferenceToTypes( translationUnit );314 linkReferenceToTypes( translationUnit ); // Must happen before auto-gen, because it uses the sized flag. 315 315 mutateAll( translationUnit, fixQual ); // must happen after LinkReferenceToTypes_old, because aggregate members are accessed 316 316 HoistStruct::hoistStruct( translationUnit ); -
src/Validate/module.mk
r43aec9e r72e76fd 41 41 Validate/LabelAddressFixer.cpp \ 42 42 Validate/LabelAddressFixer.hpp \ 43 Validate/LinkReferenceToTypes.cpp \ 44 Validate/LinkReferenceToTypes.hpp \ 43 45 Validate/NoIdSymbolTable.hpp \ 44 46 Validate/ReturnCheck.cpp \ -
src/main.cc
r43aec9e r72e76fd 85 85 #include "Validate/InitializerLength.hpp" // for setLengthFromInitializer 86 86 #include "Validate/LabelAddressFixer.hpp" // for fixLabelAddresses 87 #include "Validate/LinkReferenceToTypes.hpp" // for linkReferenceToTypes 87 88 #include "Validate/ReturnCheck.hpp" // for checkReturnStatements 88 89 #include "Virtual/ExpandCasts.h" // for expandCasts … … 333 334 PASS( "Validate-A", SymTab::validate_A( translationUnit ) ); 334 335 335 // Must happen before auto-gen, because it uses the sized flag.336 PASS( "Link Reference To Types", SymTab::linkReferenceToTypes( translationUnit ) );337 338 336 CodeTools::fillLocations( translationUnit ); 339 337 … … 348 346 349 347 forceFillCodeLocations( transUnit ); 348 349 // Must happen before auto-gen, because it uses the sized flag. 350 PASS( "Link Reference To Types", Validate::linkReferenceToTypes( transUnit ) ); 350 351 351 352 // Must happen after Link References To Types, -
tests/enum_tests/structEnum.cfa
r43aec9e r72e76fd 24 24 int main() { 25 25 printf("%d %c\n", apple.x, apple.y); 26 // Failed; enumInstType is now not a real type and not instantiated. 26 // Failed; enumInstType is now not a real type and not instantiated. 27 27 // Not sure if we want that 28 28 // printf("%d %c\n", second.x, second.y); 29 29 return 0; 30 30 } 31 32 33
Note: See TracChangeset
for help on using the changeset viewer.