Changeset 862658a for src/CodeGen
- Timestamp:
- Jan 11, 2023, 1:43:30 PM (3 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 42b739d7
- Parents:
- b49310f (diff), 8fcf921 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- src/CodeGen
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cc
rb49310f r862658a 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
rb49310f r862658a 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.