Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/ObjectDecl.cc

    r974906e2 r1cbca6e  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // ObjectDecl.cc --
     7// ObjectDecl.cc -- 
    88//
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Rob Schluntz
    12 // Last Modified On : Fri Jan 08 15:29:10 2016
    13 // Update Count     : 27
     12// Last Modified On : Tue Sep 29 14:13:01 2015
     13// Update Count     : 18
    1414//
    1515
     
    1919#include "Expression.h"
    2020#include "utility.h"
    21 #include "Statement.h"
    2221
    2322ObjectDecl::ObjectDecl( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Type linkage, Expression *bitfieldWidth, Type *type, Initializer *init, bool isInline, bool isNoreturn )
     
    2524        set_isInline( isInline );
    2625        set_isNoreturn( isNoreturn );
    27         set_ctor( NULL );
    2826}
    2927
    3028ObjectDecl::ObjectDecl( const ObjectDecl &other )
    31         : Parent( other ), type( maybeClone( other.type ) ), init( maybeClone( other.init ) ), bitfieldWidth( maybeClone( other.bitfieldWidth ) ), ctor( maybeClone( other.ctor ) ) {
     29        : Parent( other ), type( maybeClone( other.type ) ), init( maybeClone( other.init ) ), bitfieldWidth( maybeClone( other.bitfieldWidth ) ) {
    3230}
    3331
     
    3634        delete init;
    3735        delete bitfieldWidth;
    38         delete ctor;
    3936}
    4037
     
    6158                os << " with initializer ";
    6259                init->print( os, indent );
    63                 os << std::string(indent, ' ') << "maybeConstructed? " << init->get_maybeConstructed();
    6460        } // if
    6561
     
    6864                bitfieldWidth->print( os );
    6965        } // if
    70 
    71         if ( ctor ) {
    72                 os << " initially constructed with ";
    73                 ctor->print( os, indent );
    74         } // if
    7566}
    7667
     
    7869#if 0
    7970        if ( get_mangleName() != "") {
    80                 os << get_mangleName() << ": ";
    81         } else
     71                os << get_mangleName() << ": "; 
     72        } else 
    8273#endif
    8374        if ( get_name() != "" ) {
Note: See TracChangeset for help on using the changeset viewer.