Changes in src/CodeGen/CodeGenerator.h [a28bc02:5f642e38]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.h
ra28bc02 r5f642e38 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Andrew Beach12 // Last Modified On : Wed Ma y 10 10:57:00201713 // Update Count : 5 111 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Mar 1 16:20:04 2017 13 // Update Count : 50 14 14 // 15 15 … … 25 25 #include "SymTab/Indexer.h" 26 26 27 #include "Common/utility.h"28 29 27 namespace CodeGen { 30 28 class CodeGenerator : public Visitor { … … 32 30 static int tabsize; 33 31 34 CodeGenerator( std::ostream &os, bool pretty = false, bool genC = false , bool lineMarks = false);32 CodeGenerator( std::ostream &os, bool pretty = false, bool genC = false ); 35 33 CodeGenerator( std::ostream &os, std::string, int indent = 0, bool infun = false ); 36 34 CodeGenerator( std::ostream &os, char *, int indent = 0, bool infun = false ); … … 76 74 virtual void visit( UntypedTupleExpr *tupleExpr ); 77 75 virtual void visit( TupleExpr *tupleExpr ); 78 virtual void visit( TupleIndexExpr * tupleExpr );79 76 virtual void visit( TypeExpr *typeExpr ); 80 77 virtual void visit( AsmExpr * ); … … 113 110 }; 114 111 115 struct LineMarker {116 CodeLocation const & loc;117 bool toPrint;118 119 LineMarker(CodeLocation const & loc, bool toPrint);120 };121 122 LineMarker lineDirective(BaseSyntaxNode const * node);123 124 112 void asmName( DeclarationWithType *decl ); 125 113 … … 134 122 bool pretty = false; // pretty print 135 123 bool genC = false; // true if output has to be C code 136 bool lineMarks = false;137 124 138 125 void printDesignators( std::list< Expression * > & ); … … 162 149 /// returns C-compatible name of declaration 163 150 std::string genName( DeclarationWithType * decl ); 164 165 std::ostream & operator<<(std::ostream &,166 CodeGenerator::LineMarker const &);167 151 } // namespace CodeGen 168 152
Note:
See TracChangeset
for help on using the changeset viewer.