Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cc

    r9feb34b rf4e01f1  
    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
    297312        void CodeGenerator::postvisit( EnumDecl * enumDecl ) {
    298                 extension( enumDecl );
     313                // if ( enumDecl->data_constructors.size() > 0 ) return handleData( enumDecl );
     314                extension( enumDecl );
    299315                std::list< Declaration* > &memb = enumDecl->get_members();
    300316                if (enumDecl->base && ! memb.empty()) {
     
    332348                        } // if
    333349                } // if
     350        }
     351
     352        void CodeGenerator::postvisit( AdtDecl * ) {
     353                // TODO
    334354        }
    335355
Note: See TracChangeset for help on using the changeset viewer.