Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cc

    r12df6fe r1931bb01  
    277277                std::list< Declaration* > &memb = enumDecl->get_members();
    278278                if (enumDecl->base && ! memb.empty()) {
    279                         unsigned long long last_val = -1; // if the first enum value has no explicit initializer,
    280                         // as other
     279                        unsigned long long last_val = -1;
    281280                        for ( std::list< Declaration* >::iterator i = memb.begin(); i != memb.end();  i++) {
    282281                                ObjectDecl * obj = dynamic_cast< ObjectDecl* >( *i );
     
    690689                        output << opInfo->symbol;
    691690                } else {
     691                        // if (dynamic_cast<EnumInstType *>(variableExpr->get_var()->get_type())
     692                        // && dynamic_cast<EnumInstType *>(variableExpr->get_var()->get_type())->baseEnum->base) {
     693                        //      output << '(' <<genType(dynamic_cast<EnumInstType *>(variableExpr->get_var()->get_type())->baseEnum->base, "", options) << ')';
     694                        // }
    692695                        output << mangleName( variableExpr->get_var() );
    693696                } // if
     
    908911        }
    909912
    910         // QualifiedNameExpr should not reach to CodeGen.
    911         // FixQualifiedName Convert QualifiedNameExpr to VariableExpr
    912         void CodeGenerator::postvisit( QualifiedNameExpr * expr ) {
    913                 output << "/* label */" << mangleName(expr->var);
    914         }
    915913
    916914        // *** Statements
Note: See TracChangeset for help on using the changeset viewer.