Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.h

    rf7cb0bc ra28bc02  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Andrew Beach
    12 // Last Modified On : Thu Jun  8 15:48:00 2017
    13 // Update Count     : 52
     12// Last Modified On : Wed May 10 10:57:00 2017
     13// Update Count     : 51
    1414//
    1515
     
    2525#include "SymTab/Indexer.h"
    2626
    27 #include "Common/Indenter.h"
    2827#include "Common/utility.h"
    2928
     
    4847
    4948                //*** Initializer
    50                 virtual void visit( Designation * );
    5149                virtual void visit( SingleInit * );
    5250                virtual void visit( ListInit * );
     
    9391                virtual void visit( BranchStmt * );
    9492                virtual void visit( ReturnStmt * );
    95                 virtual void visit( ThrowStmt * );
    9693                virtual void visit( WhileStmt * );
    9794                virtual void visit( ForStmt * );
     
    10299
    103100                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                };
    104107
    105108                struct LabelPrinter {
     
    125128          private:
    126129                Indenter indent;
     130                int cur_indent;
    127131                bool insideFunction;
    128132                std::ostream &output;
     
    132136                bool lineMarks = false;
    133137
     138                void printDesignators( std::list< Expression * > & );
    134139                void handleStorageClass( DeclarationWithType *decl );
    135140                void handleAggregate( AggregateDecl *aggDecl, const std::string & kind );
Note: See TracChangeset for help on using the changeset viewer.