Changes in / [a935892:8d70648]


Ignore:
Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Convert.cpp

    ra935892 r8d70648  
    4747namespace {
    4848
    49 // This is to preserve the FindSpecialDecls hack. It does not (and perhaps should not)
     49// This is to preserve the SymTab::dereferenceOperator hack. It does not (and perhaps should not)
    5050// allow us to use the same stratagy in the new ast.
    5151ast::FunctionDecl * dereferenceOperator = nullptr;
    52 ast::StructDecl   * dtorStruct = nullptr;
    53 ast::FunctionDecl * dtorStructDestroy = nullptr;
    5452
    5553}
     
    178176                        Validate::dereferenceOperator = decl;
    179177                }
    180                 if ( dtorStructDestroy == node ) {
    181                         Validate::dtorStructDestroy = decl;
    182                 }
    183178                return declWithTypePostamble( decl, node );
    184179        }
     
    236231                        LinkageSpec::Spec( node->linkage.val )
    237232                );
    238 
    239                 if ( dtorStruct == node ) {
    240                         Validate::dtorStruct = decl;
    241                 }
    242 
    243233                return aggregatePostamble( decl, node );
    244234        }
     
    14681458                        dereferenceOperator = decl;
    14691459                }
    1470 
    1471                 if ( Validate::dtorStructDestroy == old ) {
    1472                         dtorStructDestroy = decl;
    1473                 }
    14741460        }
    14751461
     
    14931479
    14941480                this->node = decl;
    1495 
    1496                 if ( Validate::dtorStruct == old ) {
    1497                         dtorStruct = decl;
    1498                 }
    14991481        }
    15001482
  • src/Validate/FindSpecialDecls.cc

    ra935892 r8d70648  
    2626namespace Validate {
    2727        Type * SizeType = nullptr;
    28         FunctionDecl * dereferenceOperator = nullptr;
    29         StructDecl * dtorStruct = nullptr;
    30         FunctionDecl * dtorStructDestroy = nullptr;
     28  FunctionDecl * dereferenceOperator = nullptr;
     29  StructDecl * dtorStruct = nullptr;
     30  FunctionDecl * dtorStructDestroy = nullptr;
    3131
    3232        namespace {
Note: See TracChangeset for help on using the changeset viewer.