Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.h

    r0dd18fd r08fc48f  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Andrew Beach
    12 // Last Modified On : Fri Aug 18 15:40:00 2017
    13 // Update Count     : 56
     12// Last Modified On : Tus Jul 25 25:30:00 2017
     13// Update Count     : 54
    1414//
    1515
     
    108108                };
    109109
     110                struct LineMarker {
     111                        CodeLocation const & loc;
     112                        bool toPrint;
     113
     114                        LineMarker(CodeLocation const & loc, bool toPrint);
     115                };
     116
     117                LineMarker lineDirective(BaseSyntaxNode const * node);
     118
    110119                void asmName( DeclarationWithType *decl );
    111120
    112121                void extension( Expression *expr );
    113122                void extension( Declaration *decl );
    114 
    115                 void updateLocation( BaseSyntaxNode const * to );
    116123          private:
    117124                Indenter indent;
     
    122129                bool genC = false;    // true if output has to be C code
    123130                bool lineMarks = false;
    124 
    125                 CodeLocation currentLocation;
    126                 void updateLocation( CodeLocation const & to );
    127                 void nextLine();
    128131
    129132                void handleStorageClass( DeclarationWithType *decl );
     
    152155        /// returns C-compatible name of declaration
    153156        std::string genName( DeclarationWithType * decl );
     157
     158        std::ostream & operator<<(std::ostream &,
     159                CodeGenerator::LineMarker const &);
    154160} // namespace CodeGen
    155161
Note: See TracChangeset for help on using the changeset viewer.