- Timestamp:
 - Oct 31, 2023, 10:39:33 AM (2 years ago)
 - Branches:
 - master
 - Children:
 - 58c64323
 - Parents:
 - 7d55e4d
 - Location:
 - src
 - Files:
 - 
      
- 3 edited
 
- 
          
  ResolvExpr/CommonType.cc (modified) (1 diff)
 - 
          
  ResolvExpr/ConversionCost.cc (modified) (2 diffs)
 - 
          
  SymTab/ManglerCommon.cc (modified) (3 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
src/ResolvExpr/CommonType.cc
r7d55e4d r4ac402d 485 485 // GENERATED END 486 486 static_assert( 487 sizeof(commonTypes)/sizeof(commonTypes[0][0]) == BasicType::NUMBER_OF_BASIC_TYPES *BasicType::NUMBER_OF_BASIC_TYPES,487 sizeof(commonTypes)/sizeof(commonTypes[0][0]) == ast::BasicType::NUMBER_OF_BASIC_TYPES * ast::BasicType::NUMBER_OF_BASIC_TYPES, 488 488 "Each basic type kind should have a corresponding row in the combined type matrix" 489 489 );  - 
      
src/ResolvExpr/ConversionCost.cc
r7d55e4d r4ac402d 268 268 // GENERATED END 269 269 static_assert( 270 sizeof(costMatrix)/sizeof(costMatrix[0][0]) == BasicType::NUMBER_OF_BASIC_TYPES *BasicType::NUMBER_OF_BASIC_TYPES,270 sizeof(costMatrix)/sizeof(costMatrix[0][0]) == ast::BasicType::NUMBER_OF_BASIC_TYPES * ast::BasicType::NUMBER_OF_BASIC_TYPES, 271 271 "Missing row in the cost matrix" 272 272 ); … … 315 315 // GENERATED END 316 316 static_assert( 317 sizeof(signMatrix)/sizeof(signMatrix[0][0]) == BasicType::NUMBER_OF_BASIC_TYPES *BasicType::NUMBER_OF_BASIC_TYPES,317 sizeof(signMatrix)/sizeof(signMatrix[0][0]) == ast::BasicType::NUMBER_OF_BASIC_TYPES * ast::BasicType::NUMBER_OF_BASIC_TYPES, 318 318 "Missing row in the sign matrix" 319 319 );  - 
      
src/SymTab/ManglerCommon.cc
r7d55e4d r4ac402d 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 { … … 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.