Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.h

    ra28bc02 rf7cb0bc  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Andrew Beach
    12 // Last Modified On : Wed May 10 10:57:00 2017
    13 // Update Count     : 51
     12// Last Modified On : Thu Jun  8 15:48:00 2017
     13// Update Count     : 52
    1414//
    1515
     
    2525#include "SymTab/Indexer.h"
    2626
     27#include "Common/Indenter.h"
    2728#include "Common/utility.h"
    2829
     
    4748
    4849                //*** Initializer
     50                virtual void visit( Designation * );
    4951                virtual void visit( SingleInit * );
    5052                virtual void visit( ListInit * );
     
    9193                virtual void visit( BranchStmt * );
    9294                virtual void visit( ReturnStmt * );
     95                virtual void visit( ThrowStmt * );
    9396                virtual void visit( WhileStmt * );
    9497                virtual void visit( ForStmt * );
     
    99102
    100103                template< class Iterator > void genCommaList( Iterator begin, Iterator end );
    101 
    102                 struct Indenter {
    103                         Indenter(CodeGenerator &cg) : cg(cg) {}
    104                         CodeGenerator & cg;
    105                         std::ostream& operator()(std::ostream & os) const;
    106                 };
    107104
    108105                struct LabelPrinter {
     
    128125          private:
    129126                Indenter indent;
    130                 int cur_indent;
    131127                bool insideFunction;
    132128                std::ostream &output;
     
    136132                bool lineMarks = false;
    137133
    138                 void printDesignators( std::list< Expression * > & );
    139134                void handleStorageClass( DeclarationWithType *decl );
    140135                void handleAggregate( AggregateDecl *aggDecl, const std::string & kind );
Note: See TracChangeset for help on using the changeset viewer.