Changes in src/CodeGen/CodeGenerator.cc [f4e01f1:9feb34b]
- File:
-
- 1 edited
-
src/CodeGen/CodeGenerator.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cc
rf4e01f1 r9feb34b 295 295 } 296 296 297 void CodeGenerator::handleData( EnumDecl * ) {298 // output << " /** data type */" << endl;299 // for ( StructDecl * decl : dataDecl->data_constructors ) {300 // postvisit(decl);301 // output << ";" << endl;302 // }303 // postvisit( dataDecl->data_union );304 // output << ";" << endl;305 // postvisit( dataDecl->tag );306 // output << ";" << endl;307 // postvisit( dataDecl->tag_union );308 // output << ";" << endl;309 assert(false);310 }311 312 297 void CodeGenerator::postvisit( EnumDecl * enumDecl ) { 313 // if ( enumDecl->data_constructors.size() > 0 ) return handleData( enumDecl ); 314 extension( enumDecl ); 298 extension( enumDecl ); 315 299 std::list< Declaration* > &memb = enumDecl->get_members(); 316 300 if (enumDecl->base && ! memb.empty()) { … … 348 332 } // if 349 333 } // if 350 }351 352 void CodeGenerator::postvisit( AdtDecl * ) {353 // TODO354 334 } 355 335
Note:
See TracChangeset
for help on using the changeset viewer.