Changeset fc12f05 for src/SymTab/ManglerCommon.cc
- Timestamp:
- Nov 13, 2023, 3:43:43 AM (23 months ago)
- Branches:
- master
- Children:
- 25f2798
- Parents:
- 0030b508 (diff), 2174191 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/ManglerCommon.cc
r0030b508 rfc12f05 15 15 16 16 #include "Mangler.h" 17 #include "SynTree/Type.h" 18 #include "SynTree/Declaration.h" 17 18 #include "AST/Decl.hpp" 19 #include "AST/Type.hpp" 19 20 20 21 namespace SymTab { … … 39 40 // - "Di" char32_t 40 41 // - "Ds" char16_t 41 const std::string basicTypes[ BasicType::NUMBER_OF_BASIC_TYPES] = {42 const std::string basicTypes[ast::BasicType::NUMBER_OF_BASIC_TYPES] = { 42 43 "b", // _Bool 43 44 "c", // char … … 79 80 // GENERATED END 80 81 static_assert( 81 sizeof(basicTypes)/sizeof(basicTypes[0]) == BasicType::NUMBER_OF_BASIC_TYPES,82 sizeof(basicTypes)/sizeof(basicTypes[0]) == ast::BasicType::NUMBER_OF_BASIC_TYPES, 82 83 "Each basic type kind should have a corresponding mangler letter" 83 84 ); 84 85 85 86 const std::map<int, std::string> qualifiers = { 86 { Type::Const, "K" },87 { Type::Volatile, "V" },88 { Type::Atomic, "DA" }, // A is array, so need something unique for atmoic. For now, go with multiletter DA89 { Type::Mutex, "X" },87 { ast::CV::Const, "K" }, 88 { ast::CV::Volatile, "V" }, 89 { ast::CV::Atomic, "DA" }, // A is array, so need something unique for atmoic. For now, go with multiletter DA 90 { ast::CV::Mutex, "X" }, 90 91 }; 91 92 … … 111 112 }; 112 113 static_assert( 113 sizeof(typeVariables) / sizeof(typeVariables[0]) == TypeDecl::NUMBER_OF_KINDS,114 sizeof(typeVariables) / sizeof(typeVariables[0]) == ast::TypeDecl::NUMBER_OF_KINDS, 114 115 "Each type variable kind should have a corresponding mangler prefix" 115 116 );
Note:
See TracChangeset
for help on using the changeset viewer.