Changes in src/CodeGen/CodeGenerator.cc [9feb34b:f4e01f1]
- File:
-
- 1 edited
-
src/CodeGen/CodeGenerator.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cc
r9feb34b rf4e01f1 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 297 312 void CodeGenerator::postvisit( EnumDecl * enumDecl ) { 298 extension( enumDecl ); 313 // if ( enumDecl->data_constructors.size() > 0 ) return handleData( enumDecl ); 314 extension( enumDecl ); 299 315 std::list< Declaration* > &memb = enumDecl->get_members(); 300 316 if (enumDecl->base && ! memb.empty()) { … … 332 348 } // if 333 349 } // if 350 } 351 352 void CodeGenerator::postvisit( AdtDecl * ) { 353 // TODO 334 354 } 335 355
Note:
See TracChangeset
for help on using the changeset viewer.