Changes in src/SymTab/ManglerCommon.cc [4ac402d:b66d14a]
- File:
-
- 1 edited
-
src/SymTab/ManglerCommon.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/ManglerCommon.cc
r4ac402d rb66d14a 15 15 16 16 #include "Mangler.h" 17 18 #include "AST/Decl.hpp" 19 #include "AST/Type.hpp" 17 #include "SynTree/Type.h" 18 #include "SynTree/Declaration.h" 20 19 21 20 namespace SymTab { … … 40 39 // - "Di" char32_t 41 40 // - "Ds" char16_t 42 const std::string basicTypes[ ast::BasicType::NUMBER_OF_BASIC_TYPES] = {41 const std::string basicTypes[BasicType::NUMBER_OF_BASIC_TYPES] = { 43 42 "b", // _Bool 44 43 "c", // char … … 80 79 // GENERATED END 81 80 static_assert( 82 sizeof(basicTypes)/sizeof(basicTypes[0]) == ast::BasicType::NUMBER_OF_BASIC_TYPES,81 sizeof(basicTypes)/sizeof(basicTypes[0]) == BasicType::NUMBER_OF_BASIC_TYPES, 83 82 "Each basic type kind should have a corresponding mangler letter" 84 83 ); 85 84 86 85 const std::map<int, std::string> qualifiers = { 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 DA90 { ast::CV::Mutex, "X" },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 DA 89 { Type::Mutex, "X" }, 91 90 }; 92 91 … … 112 111 }; 113 112 static_assert( 114 sizeof(typeVariables) / sizeof(typeVariables[0]) == ast::TypeDecl::NUMBER_OF_KINDS,113 sizeof(typeVariables) / sizeof(typeVariables[0]) == TypeDecl::NUMBER_OF_KINDS, 115 114 "Each type variable kind should have a corresponding mangler prefix" 116 115 );
Note:
See TracChangeset
for help on using the changeset viewer.