- Timestamp:
- May 30, 2019, 9:48:47 AM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- a935892
- Parents:
- 0aedb01
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Convert.cpp
r0aedb01 r043a5b6 47 47 namespace { 48 48 49 // This is to preserve the SymTab::dereferenceOperatorhack. It does not (and perhaps should not)49 // This is to preserve the FindSpecialDecls 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; 52 54 53 55 } … … 174 176 Validate::dereferenceOperator = decl; 175 177 } 178 if ( dtorStructDestroy == node ) { 179 Validate::dtorStructDestroy = decl; 180 } 176 181 return declWithTypePostamble( decl, node ); 177 182 } … … 229 234 LinkageSpec::Spec( node->linkage.val ) 230 235 ); 236 237 if ( dtorStruct == node ) { 238 Validate::dtorStruct = decl; 239 } 240 231 241 return aggregatePostamble( decl, node ); 232 242 } … … 1454 1464 dereferenceOperator = decl; 1455 1465 } 1466 1467 if ( Validate::dtorStructDestroy == old ) { 1468 dtorStructDestroy = decl; 1469 } 1456 1470 } 1457 1471 … … 1475 1489 1476 1490 this->node = decl; 1491 1492 if ( Validate::dtorStruct == old ) { 1493 dtorStruct = decl; 1494 } 1477 1495 } 1478 1496 -
src/Validate/FindSpecialDecls.cc
r0aedb01 r043a5b6 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.