Changeset 9749d2fa for src/CodeGen
- Timestamp:
- Jan 11, 2023, 1:36:58 PM (19 months ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 8fcf921
- Parents:
- 53ef99a
- Location:
- src/CodeGen
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cc
r53ef99a r9749d2fa 283 283 assert( obj ); 284 284 output << "static "; 285 output << genType(enumDecl->base, "", options) << " const "; 286 output << mangleName( obj ) << " "; 285 output << genType(enumDecl->base, mangleName( obj ), options); 287 286 output << " = "; 288 287 output << "(" << genType(enumDecl->base, "", options) << ")"; -
src/CodeGen/GenType.cc
r53ef99a r9749d2fa 255 255 void GenType::postvisit( EnumInstType * enumInst ) { 256 256 if ( enumInst->baseEnum && enumInst->baseEnum->base ) { 257 typeString = genType(enumInst->baseEnum->base, "", options) + typeString;257 typeString = genType(enumInst->baseEnum->base, typeString, options); 258 258 } else { 259 259 typeString = enumInst->name + " " + typeString;
Note: See TracChangeset
for help on using the changeset viewer.