Changes in / [58cb21c:cbb675d]


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cc

    r58cb21c rcbb675d  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Andrew Beach
    12 // Last Modified On : Tus May  9 16:50:00 2017
    13 // Update Count     : 484
     12// Last Modified On : Tus May  9 14:32:00 2017
     13// Update Count     : 483
    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 
    147145                extension( functionDecl );
    148146                genAttributes( functionDecl->get_attributes() );
     
    168166                }
    169167
    170                 output << lineDirective( objectDecl );
    171 
    172168                extension( objectDecl );
    173169                genAttributes( objectDecl->get_attributes() );
     
    199195                }
    200196
    201                 output << kind;
     197                output << lineDirective( aggDecl ) << kind;
    202198                if ( aggDecl->get_name() != "" )
    203199                        output << aggDecl->get_name();
     
    221217
    222218        void CodeGenerator::visit( StructDecl * structDecl ) {
    223                 output << lineDirective( structDecl );
    224 
    225219                extension( structDecl );
    226220                handleAggregate( structDecl, "struct " );
     
    228222
    229223        void CodeGenerator::visit( UnionDecl * unionDecl ) {
    230                 output << lineDirective( unionDecl );
    231 
    232224                extension( unionDecl );
    233225                handleAggregate( unionDecl, "union " );
Note: See TracChangeset for help on using the changeset viewer.