Changeset c850687 for src/CodeGen/CodeGenerator.h
- Timestamp:
- May 11, 2017, 11:07:58 AM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 8514fe19
- Parents:
- 29cf9c8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.h
r29cf9c8 rc850687 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Wed Ma r 1 16:20:04201713 // Update Count : 5 011 // Last Modified By : Andrew Beach 12 // Last Modified On : Wed May 10 10:57:00 2017 13 // Update Count : 51 14 14 // 15 15 … … 25 25 #include "SymTab/Indexer.h" 26 26 27 #include "Common/utility.h" 28 27 29 namespace CodeGen { 28 30 class CodeGenerator : public Visitor { … … 30 32 static int tabsize; 31 33 32 CodeGenerator( std::ostream &os, bool pretty = false, bool genC = false );34 CodeGenerator( std::ostream &os, bool pretty = false, bool genC = false, bool lineMarks = false ); 33 35 CodeGenerator( std::ostream &os, std::string, int indent = 0, bool infun = false ); 34 36 CodeGenerator( std::ostream &os, char *, int indent = 0, bool infun = false ); … … 110 112 }; 111 113 114 struct LineMarker { 115 CodeLocation const & loc; 116 bool toPrint; 117 118 LineMarker(CodeLocation const & loc, bool toPrint); 119 }; 120 121 LineMarker lineDirective(BaseSyntaxNode const * node); 122 112 123 void asmName( DeclarationWithType *decl ); 113 124 … … 122 133 bool pretty = false; // pretty print 123 134 bool genC = false; // true if output has to be C code 135 bool lineMarks = false; 124 136 125 137 void printDesignators( std::list< Expression * > & ); … … 149 161 /// returns C-compatible name of declaration 150 162 std::string genName( DeclarationWithType * decl ); 163 164 std::ostream & operator<<(std::ostream &, 165 CodeGenerator::LineMarker const &); 151 166 } // namespace CodeGen 152 167
Note: See TracChangeset
for help on using the changeset viewer.