Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cc

    rf4e01f1 r9feb34b  
    295295        }
    296296
    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 
    312297        void CodeGenerator::postvisit( EnumDecl * enumDecl ) {
    313                 // if ( enumDecl->data_constructors.size() > 0 ) return handleData( enumDecl );
    314                 extension( enumDecl );
     298                extension( enumDecl );
    315299                std::list< Declaration* > &memb = enumDecl->get_members();
    316300                if (enumDecl->base && ! memb.empty()) {
     
    348332                        } // if
    349333                } // if
    350         }
    351 
    352         void CodeGenerator::postvisit( AdtDecl * ) {
    353                 // TODO
    354334        }
    355335
Note: See TracChangeset for help on using the changeset viewer.