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