Changes in / [2c8c314:8fcf921]


Ignore:
Location:
src/CodeGen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cc

    r2c8c314 r8fcf921  
    283283                                assert( obj );
    284284                                output << "static ";
    285                                 output << genType(enumDecl->base, "", options) << " const ";
    286                                 output << mangleName( obj ) << " ";
     285                                output << genType(enumDecl->base, mangleName( obj ), options);
    287286                                output << " = ";
    288287                                output << "(" << genType(enumDecl->base, "", options) << ")";
  • src/CodeGen/GenType.cc

    r2c8c314 r8fcf921  
    255255        void GenType::postvisit( EnumInstType * enumInst ) {
    256256                if ( enumInst->baseEnum && enumInst->baseEnum->base ) {
    257                         typeString = genType(enumInst->baseEnum->base, "", options) + typeString;
     257                        typeString = genType(enumInst->baseEnum->base, typeString, options);
    258258                } else {
    259259                        typeString = enumInst->name + " " + typeString;
Note: See TracChangeset for help on using the changeset viewer.