- Timestamp:
- May 10, 2017, 9:40:33 AM (8 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:
- 58cb21c, 6250a312, c850687
- Parents:
- 0961bf4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cc
r0961bf4 r29cf9c8 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 4:32:00 201713 // Update Count : 48 312 // Last Modified On : Tus May 9 16:50:00 2017 13 // Update Count : 484 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 145 147 extension( functionDecl ); 146 148 genAttributes( functionDecl->get_attributes() ); … … 166 168 } 167 169 170 output << lineDirective( objectDecl ); 171 168 172 extension( objectDecl ); 169 173 genAttributes( objectDecl->get_attributes() ); … … 195 199 } 196 200 197 output << lineDirective( aggDecl ) <<kind;201 output << kind; 198 202 if ( aggDecl->get_name() != "" ) 199 203 output << aggDecl->get_name(); … … 217 221 218 222 void CodeGenerator::visit( StructDecl * structDecl ) { 223 output << lineDirective( structDecl ); 224 219 225 extension( structDecl ); 220 226 handleAggregate( structDecl, "struct " ); … … 222 228 223 229 void CodeGenerator::visit( UnionDecl * unionDecl ) { 230 output << lineDirective( unionDecl ); 231 224 232 extension( unionDecl ); 225 233 handleAggregate( unionDecl, "union " );
Note: See TracChangeset
for help on using the changeset viewer.