Changeset 58cb21c for src/CodeGen/CodeGenerator.cc
- Timestamp:
- May 10, 2017, 10:28:50 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:
- 240e1ff
- Parents:
- cbb675d (diff), 29cf9c8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cc
rcbb675d r58cb21c 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.