Changes in src/CodeGen/CodeGenerator.h [a28bc02:f7cb0bc]
- File:
-
- 1 edited
-
src/CodeGen/CodeGenerator.h (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.h
ra28bc02 rf7cb0bc 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Wed May 10 10:57:00 201713 // Update Count : 5 112 // Last Modified On : Thu Jun 8 15:48:00 2017 13 // Update Count : 52 14 14 // 15 15 … … 25 25 #include "SymTab/Indexer.h" 26 26 27 #include "Common/Indenter.h" 27 28 #include "Common/utility.h" 28 29 … … 47 48 48 49 //*** Initializer 50 virtual void visit( Designation * ); 49 51 virtual void visit( SingleInit * ); 50 52 virtual void visit( ListInit * ); … … 91 93 virtual void visit( BranchStmt * ); 92 94 virtual void visit( ReturnStmt * ); 95 virtual void visit( ThrowStmt * ); 93 96 virtual void visit( WhileStmt * ); 94 97 virtual void visit( ForStmt * ); … … 99 102 100 103 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 };107 104 108 105 struct LabelPrinter { … … 128 125 private: 129 126 Indenter indent; 130 int cur_indent;131 127 bool insideFunction; 132 128 std::ostream &output; … … 136 132 bool lineMarks = false; 137 133 138 void printDesignators( std::list< Expression * > & );139 134 void handleStorageClass( DeclarationWithType *decl ); 140 135 void handleAggregate( AggregateDecl *aggDecl, const std::string & kind );
Note:
See TracChangeset
for help on using the changeset viewer.