Changeset 0b3b2ae for src/CodeGen
- Timestamp:
- Jun 22, 2018, 3:43:19 PM (6 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, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- ed34540
- Parents:
- c194661
- git-author:
- Rob Schluntz <rschlunt@…> (06/22/18 14:48:30)
- git-committer:
- Rob Schluntz <rschlunt@…> (06/22/18 15:43:19)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cc
rc194661 r0b3b2ae 164 164 previsit( (BaseSyntaxNode *)node ); 165 165 GuardAction( [this, node](){ 166 if ( printExprTypes ) {166 if ( printExprTypes && node->result ) { 167 167 output << " /* " << genType( node->result, "", pretty, genC ) << " */ "; 168 168 } … … 224 224 225 225 void CodeGenerator::handleAggregate( AggregateDecl * aggDecl, const std::string & kind ) { 226 if( ! aggDecl-> get_parameters().empty() && ! genC ) {226 if( ! aggDecl->parameters.empty() && ! genC ) { 227 227 // assertf( ! genC, "Aggregate type parameters should not reach code generation." ); 228 228 output << "forall("; 229 genCommaList( aggDecl-> get_parameters().begin(), aggDecl->get_parameters().end() );229 genCommaList( aggDecl->parameters.begin(), aggDecl->parameters.end() ); 230 230 output << ")" << endl; 231 231 output << indent; … … 233 233 234 234 output << kind; 235 genAttributes( aggDecl-> get_attributes());236 output << aggDecl-> get_name();235 genAttributes( aggDecl->attributes ); 236 output << aggDecl->name; 237 237 238 238 if ( aggDecl->has_body() ) { 239 std::list< Declaration * > & memb = aggDecl-> get_members();239 std::list< Declaration * > & memb = aggDecl->members; 240 240 output << " {" << endl; 241 241
Note: See TracChangeset
for help on using the changeset viewer.