Changes in / [a935892:8d70648]
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Convert.cpp
ra935892 r8d70648 47 47 namespace { 48 48 49 // This is to preserve the FindSpecialDeclshack. It does not (and perhaps should not)49 // This is to preserve the SymTab::dereferenceOperator hack. It does not (and perhaps should not) 50 50 // allow us to use the same stratagy in the new ast. 51 51 ast::FunctionDecl * dereferenceOperator = nullptr; 52 ast::StructDecl * dtorStruct = nullptr;53 ast::FunctionDecl * dtorStructDestroy = nullptr;54 52 55 53 } … … 178 176 Validate::dereferenceOperator = decl; 179 177 } 180 if ( dtorStructDestroy == node ) {181 Validate::dtorStructDestroy = decl;182 }183 178 return declWithTypePostamble( decl, node ); 184 179 } … … 236 231 LinkageSpec::Spec( node->linkage.val ) 237 232 ); 238 239 if ( dtorStruct == node ) {240 Validate::dtorStruct = decl;241 }242 243 233 return aggregatePostamble( decl, node ); 244 234 } … … 1468 1458 dereferenceOperator = decl; 1469 1459 } 1470 1471 if ( Validate::dtorStructDestroy == old ) {1472 dtorStructDestroy = decl;1473 }1474 1460 } 1475 1461 … … 1493 1479 1494 1480 this->node = decl; 1495 1496 if ( Validate::dtorStruct == old ) {1497 dtorStruct = decl;1498 }1499 1481 } 1500 1482 -
src/Validate/FindSpecialDecls.cc
ra935892 r8d70648 26 26 namespace Validate { 27 27 Type * SizeType = nullptr; 28 29 30 28 FunctionDecl * dereferenceOperator = nullptr; 29 StructDecl * dtorStruct = nullptr; 30 FunctionDecl * dtorStructDestroy = nullptr; 31 31 32 32 namespace {
Note: See TracChangeset
for help on using the changeset viewer.