Changeset 4e08a54 for src/CodeGen
- Timestamp:
- Apr 19, 2024, 12:01:34 PM (23 months ago)
- Branches:
- master, stuck-waitfor-destruct
- Children:
- b9b6efb
- Parents:
- da87eaf (diff), 02c80cdc (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
-
FixMain.cc (modified) (2 diffs)
-
GenType.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/FixMain.cc
rda87eaf r4e08a54 52 52 ast::ObjectDecl * makeIntObj(){ 53 53 return new ast::ObjectDecl( CodeLocation(), "", 54 new ast::BasicType( ast::Basic Type::SignedInt ) );54 new ast::BasicType( ast::BasicKind::SignedInt ) ); 55 55 } 56 56 … … 59 59 new ast::PointerType( 60 60 new ast::PointerType( 61 new ast::BasicType( ast::Basic Type::Char ) ) ) );61 new ast::BasicType( ast::BasicKind::Char ) ) ) ); 62 62 } 63 63 -
src/CodeGen/GenType.cc
rda87eaf r4e08a54 46 46 void postvisit( ast::UnionInstType const * type ); 47 47 void postvisit( ast::EnumInstType const * type ); 48 void postvisit( ast::Enum PosType const * type );48 void postvisit( ast::EnumAttrType const * type ); 49 49 void postvisit( ast::TypeInstType const * type ); 50 50 void postvisit( ast::TupleType const * type ); … … 87 87 88 88 void GenType::postvisit( ast::BasicType const * type ) { 89 ast::Basic Type::Kind kind = type->kind;90 assert( 0 <= kind && kind < ast::Basic Type::NUMBER_OF_BASIC_TYPES );89 ast::BasicKind kind = type->kind; 90 assert( 0 <= kind && kind < ast::BasicKind::NUMBER_OF_BASIC_TYPES ); 91 91 result = std::string( ast::BasicType::typeNames[kind] ) + " " + result; 92 92 handleQualifiers( type ); … … 240 240 } 241 241 242 void GenType::postvisit( ast::Enum PosType const * type ) {242 void GenType::postvisit( ast::EnumAttrType const * type ) { 243 243 postvisit( type->instance ); 244 244 }
Note:
See TracChangeset
for help on using the changeset viewer.