Ignore:
Timestamp:
Dec 13, 2016, 3:14:59 PM (7 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
04c8bba
Parents:
2ee5426
Message:

add asm_name clause to declarations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/DeclarationWithType.cc

    r2ee5426 r58dd019  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Aug 18 23:50:41 2016
    13 // Update Count     : 4
     12// Last Modified On : Tue Dec 13 14:49:43 2016
     13// Update Count     : 7
    1414//
    1515
     
    2020
    2121DeclarationWithType::DeclarationWithType( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Spec linkage, const std::list< Attribute * > & attributes )
    22                 : Declaration( name, sc, linkage ), attributes( attributes ) {
     22        : Declaration( name, sc, linkage ), asmName( nullptr ), attributes( attributes ) {
    2323}
    2424
     
    2626                : Declaration( other ), mangleName( other.mangleName ), scopeLevel( other.scopeLevel ) {
    2727        cloneAll( other.attributes, attributes );
     28        asmName = maybeClone( other.asmName );
    2829}
    2930
    3031DeclarationWithType::~DeclarationWithType() {
    3132        deleteAll( attributes );
     33        delete asmName;
    3234}
    3335
Note: See TracChangeset for help on using the changeset viewer.