Changeset 58cb21c


Ignore:
Timestamp:
May 10, 2017, 10:28:50 AM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
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:
240e1ff
Parents:
cbb675d (diff), 29cf9c8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:/u/cforall/software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cc

    rcbb675d r58cb21c  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Andrew Beach
    12 // Last Modified On : Tus May  9 14:32:00 2017
    13 // Update Count     : 483
     12// Last Modified On : Tus May  9 16:50:00 2017
     13// Update Count     : 484
    1414//
    1515
     
    4242        int CodeGenerator::tabsize = 4;
    4343
    44         // Pseudo Function: output << lineDirective(*currentNode);
     44        // Pseudo Function: output << lineDirective(currentNode);
    4545    struct lineDirective {
    4646        CodeLocation const & loc;
     
    143143        // *** Declarations
    144144        void CodeGenerator::visit( FunctionDecl * functionDecl ) {
     145                output << lineDirective( functionDecl );
     146
    145147                extension( functionDecl );
    146148                genAttributes( functionDecl->get_attributes() );
     
    166168                }
    167169
     170                output << lineDirective( objectDecl );
     171
    168172                extension( objectDecl );
    169173                genAttributes( objectDecl->get_attributes() );
     
    195199                }
    196200
    197                 output << lineDirective( aggDecl ) << kind;
     201                output << kind;
    198202                if ( aggDecl->get_name() != "" )
    199203                        output << aggDecl->get_name();
     
    217221
    218222        void CodeGenerator::visit( StructDecl * structDecl ) {
     223                output << lineDirective( structDecl );
     224
    219225                extension( structDecl );
    220226                handleAggregate( structDecl, "struct " );
     
    222228
    223229        void CodeGenerator::visit( UnionDecl * unionDecl ) {
     230                output << lineDirective( unionDecl );
     231
    224232                extension( unionDecl );
    225233                handleAggregate( unionDecl, "union " );
Note: See TracChangeset for help on using the changeset viewer.