Changes in / [58cb21c:cbb675d]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cc
r58cb21c rcbb675d 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Tus May 9 1 6:50:00 201713 // Update Count : 48 412 // Last Modified On : Tus May 9 14:32:00 2017 13 // Update Count : 483 14 14 // 15 15 … … 42 42 int CodeGenerator::tabsize = 4; 43 43 44 // Pseudo Function: output << lineDirective( currentNode);44 // Pseudo Function: output << lineDirective(*currentNode); 45 45 struct lineDirective { 46 46 CodeLocation const & loc; … … 143 143 // *** Declarations 144 144 void CodeGenerator::visit( FunctionDecl * functionDecl ) { 145 output << lineDirective( functionDecl );146 147 145 extension( functionDecl ); 148 146 genAttributes( functionDecl->get_attributes() ); … … 168 166 } 169 167 170 output << lineDirective( objectDecl );171 172 168 extension( objectDecl ); 173 169 genAttributes( objectDecl->get_attributes() ); … … 199 195 } 200 196 201 output << kind;197 output << lineDirective( aggDecl ) << kind; 202 198 if ( aggDecl->get_name() != "" ) 203 199 output << aggDecl->get_name(); … … 221 217 222 218 void CodeGenerator::visit( StructDecl * structDecl ) { 223 output << lineDirective( structDecl );224 225 219 extension( structDecl ); 226 220 handleAggregate( structDecl, "struct " ); … … 228 222 229 223 void CodeGenerator::visit( UnionDecl * unionDecl ) { 230 output << lineDirective( unionDecl );231 232 224 extension( unionDecl ); 233 225 handleAggregate( unionDecl, "union " );
Note: See TracChangeset
for help on using the changeset viewer.