Changeset 7a780ad for src/SymTab
- Timestamp:
- Apr 18, 2024, 5:19:17 PM (6 months ago)
- Branches:
- master
- Children:
- 38093ae
- Parents:
- 60c5b6d
- Location:
- src/SymTab
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/GenImplicitCall.cpp
r60c5b6d r7a780ad 133 133 134 134 ast::ptr< ast::DeclWithType > index = new ast::ObjectDecl( 135 loc, indexName.newName(), new ast::BasicType( ast::Basic Type::SignedInt ),135 loc, indexName.newName(), new ast::BasicType( ast::BasicKind::SignedInt ), 136 136 new ast::SingleInit( loc, begin ) ); 137 137 ast::ptr< ast::Expr > indexVar = new ast::VariableExpr( loc, index ); -
src/SymTab/Mangler.cc
r60c5b6d r7a780ad 142 142 void Mangler::postvisit( const ast::BasicType * basicType ) { 143 143 printQualifiers( basicType ); 144 assertf( basicType->kind < ast::Basic Type::NUMBER_OF_BASIC_TYPES, "Unhandled basic type: %d", basicType->kind );144 assertf( basicType->kind < ast::BasicKind::NUMBER_OF_BASIC_TYPES, "Unhandled basic type: %d", basicType->kind ); 145 145 mangleName += Encoding::basicTypes[ basicType->kind ]; 146 146 } -
src/SymTab/ManglerCommon.cc
r60c5b6d r7a780ad 41 41 // - "Di" char32_t 42 42 // - "Ds" char16_t 43 const std::string basicTypes[ast::Basic Type::NUMBER_OF_BASIC_TYPES] = {43 const std::string basicTypes[ast::BasicKind::NUMBER_OF_BASIC_TYPES] = { 44 44 "b", // _Bool 45 45 "c", // char … … 81 81 // GENERATED END 82 82 static_assert( 83 sizeof(basicTypes) / sizeof(basicTypes[0]) == ast::Basic Type::NUMBER_OF_BASIC_TYPES,83 sizeof(basicTypes) / sizeof(basicTypes[0]) == ast::BasicKind::NUMBER_OF_BASIC_TYPES, 84 84 "Each basic type kind should have a corresponding mangler letter" 85 85 );
Note: See TracChangeset
for help on using the changeset viewer.