Changes in src/CodeGen/CodeGenerator.h [0dd18fd:08fc48f]
- File:
-
- 1 edited
-
src/CodeGen/CodeGenerator.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.h
r0dd18fd r08fc48f 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Fri Aug 18 15:40:00 201713 // Update Count : 5 612 // Last Modified On : Tus Jul 25 25:30:00 2017 13 // Update Count : 54 14 14 // 15 15 … … 108 108 }; 109 109 110 struct LineMarker { 111 CodeLocation const & loc; 112 bool toPrint; 113 114 LineMarker(CodeLocation const & loc, bool toPrint); 115 }; 116 117 LineMarker lineDirective(BaseSyntaxNode const * node); 118 110 119 void asmName( DeclarationWithType *decl ); 111 120 112 121 void extension( Expression *expr ); 113 122 void extension( Declaration *decl ); 114 115 void updateLocation( BaseSyntaxNode const * to );116 123 private: 117 124 Indenter indent; … … 122 129 bool genC = false; // true if output has to be C code 123 130 bool lineMarks = false; 124 125 CodeLocation currentLocation;126 void updateLocation( CodeLocation const & to );127 void nextLine();128 131 129 132 void handleStorageClass( DeclarationWithType *decl ); … … 152 155 /// returns C-compatible name of declaration 153 156 std::string genName( DeclarationWithType * decl ); 157 158 std::ostream & operator<<(std::ostream &, 159 CodeGenerator::LineMarker const &); 154 160 } // namespace CodeGen 155 161
Note:
See TracChangeset
for help on using the changeset viewer.