Ignore:
Timestamp:
Jul 15, 2016, 10:16:47 PM (8 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
873ffb7
Parents:
5ed9061
Message:

start code allowing structures to no fields

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/TypeData.cc

    r5ed9061 r5d125e4  
    1010// Created On       : Sat May 16 15:12:51 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Jul 12 17:21:49 2016
    13 // Update Count     : 50
     12// Last Modified On : Wed Jul 13 18:03:29 2016
     13// Update Count     : 56
    1414//
    1515
     
    200200                newtype->aggregate->name = aggregate->name;
    201201                newtype->aggregate->kind = aggregate->kind;
     202                newtype->aggregate->body = aggregate->body;
    202203                break;
    203204          case AggregateInst:
     
    327328                        os << string( indent + 2, ' ' ) << "with members " << endl;
    328329                        aggregate->fields->printList( os, indent + 4 );
    329 ///     } else {
    330 ///       os << string( indent + 2, ' ' ) << "with no members " << endl;
     330                } // if
     331                if ( aggregate->body ) {
     332                        os << string( indent + 2, ' ' ) << " with body " << endl;
    331333                } // if
    332334                break;
     
    847849
    848850        buildList( aggregate->fields, at->get_members() );
     851        at->set_body( aggregate->body );
    849852
    850853        return at;
Note: See TracChangeset for help on using the changeset viewer.