Changeset 29cf9c8


Ignore:
Timestamp:
May 10, 2017, 9:40:33 AM (4 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
58cb21c, 6250a312, c850687
Parents:
0961bf4
Message:

Working, but inaccurate, line directives are being added.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cc

    r0961bf4 r29cf9c8  
    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.