Changeset f135b50 for src/CodeGen
- Timestamp:
- Feb 28, 2022, 3:41:44 AM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
- Children:
- 786c438
- Parents:
- a8ef59e
- Location:
- src/CodeGen
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/CodeGen/CodeGenerator.cc ¶
ra8ef59e rf135b50 274 274 void CodeGenerator::postvisit( EnumDecl * enumDecl ) { 275 275 extension( enumDecl ); 276 output << "enum ";276 output << "enum /* Marker CodeGenerator::EnumDecl */ "; 277 277 genAttributes( enumDecl->get_attributes() ); 278 278 … … 291 291 if ( obj->get_init() ) { 292 292 output << " = "; 293 // In progress 293 294 obj->get_init()->accept( *visitor ); 294 295 } // if -
TabularUnified src/CodeGen/GenType.cc ¶
ra8ef59e rf135b50 254 254 void GenType::postvisit( EnumInstType * enumInst ) { 255 255 typeString = enumInst->name + " " + typeString; 256 if ( options.genC ) typeString = "enum " + typeString;256 if ( options.genC ) typeString = "enum /* Marker GenType::EnumInstType */ " + typeString; 257 257 handleQualifiers( enumInst ); 258 258 }
Note: See TracChangeset
for help on using the changeset viewer.