Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/DeclarationNode.cc

    rb66d14a r2d019af  
    1010// Created On       : Sat May 16 12:34:05 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Jan 11 20:58:07 2021
    13 // Update Count     : 1137
     12// Last Modified On : Fri Mar 12 18:35:37 2021
     13// Update Count     : 1141
    1414//
    1515
     
    424424        newnode->attributes.push_back( new Attribute( *name, exprs ) );
    425425        delete name;
     426        return newnode;
     427}
     428
     429DeclarationNode * DeclarationNode::newDirectiveStmt( StatementNode * stmt ) {
     430        DeclarationNode * newnode = new DeclarationNode;
     431        newnode->directiveStmt = stmt;
    426432        return newnode;
    427433}
     
    10721078                return new AsmDecl( strict_dynamic_cast<AsmStmt *>( asmStmt->build() ) );
    10731079        } // if
     1080        if ( directiveStmt ) {
     1081                return new DirectiveDecl( strict_dynamic_cast<DirectiveStmt *>( directiveStmt->build() ) );
     1082        } // if
    10741083
    10751084        if ( variable.tyClass != TypeDecl::NUMBER_OF_KINDS ) {
Note: See TracChangeset for help on using the changeset viewer.