Changeset 2d019af for src/CodeGen


Ignore:
Timestamp:
Mar 12, 2021, 11:14:29 PM (5 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
41ca6fa, e867b44d
Parents:
6083392
Message:

parser global pragmas, fixes #241

Location:
src/CodeGen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cc

    r6083392 r2d019af  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sun Feb 16 08:32:48 2020
    13 // Update Count     : 532
     12// Last Modified On : Fri Mar 12 19:00:42 2021
     13// Update Count     : 536
    1414//
    1515#include "CodeGenerator.h"
     
    935935                if ( asmStmt->get_instruction() ) asmStmt->get_instruction()->accept( *visitor );
    936936                output << " )";
     937        }
     938
     939        void CodeGenerator::postvisit( DirectiveDecl * directiveDecl ) {
     940                output << endl << directiveDecl->get_stmt()->directive; // endl prevents spaces before directive
    937941        }
    938942
  • src/CodeGen/CodeGenerator.h

    r6083392 r2d019af  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sun Feb 16 03:58:31 2020
    13 // Update Count     : 62
     12// Last Modified On : Fri Mar 12 18:35:38 2021
     13// Update Count     : 63
    1414//
    1515
     
    105105                void postvisit( DirectiveStmt * );
    106106                void postvisit( AsmDecl * );                                    // special: statement in declaration context
     107                void postvisit( DirectiveDecl * );                              // special: statement in declaration context
    107108                void postvisit( IfStmt * );
    108109                void postvisit( SwitchStmt * );
Note: See TracChangeset for help on using the changeset viewer.