Changeset 4ac402d


Ignore:
Timestamp:
Oct 31, 2023, 10:39:33 AM (7 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
58c64323
Parents:
7d55e4d
Message:

Added a missing include (not sure how that slipped through) and did some other replacements so the new ast is the source of constants.

Location:
src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/CommonType.cc

    r7d55e4d r4ac402d  
    485485        // GENERATED END
    486486        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,
    488488                "Each basic type kind should have a corresponding row in the combined type matrix"
    489489        );
  • src/ResolvExpr/ConversionCost.cc

    r7d55e4d r4ac402d  
    268268        // GENERATED END
    269269        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,
    271271                "Missing row in the cost matrix"
    272272        );
     
    315315        // GENERATED END
    316316        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,
    318318                "Missing row in the sign matrix"
    319319        );
  • src/SymTab/ManglerCommon.cc

    r7d55e4d r4ac402d  
    1515
    1616#include "Mangler.h"
    17 #include "SynTree/Type.h"
    18 #include "SynTree/Declaration.h"
     17
     18#include "AST/Decl.hpp"
     19#include "AST/Type.hpp"
    1920
    2021namespace SymTab {
     
    7980                        // GENERATED END
    8081                        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,
    8283                                "Each basic type kind should have a corresponding mangler letter"
    8384                        );
    8485
    8586                        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 DA
    89                                 { 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" },
    9091                        };
    9192
     
    111112                        };
    112113                        static_assert(
    113                                 sizeof(typeVariables) / sizeof(typeVariables[0]) == TypeDecl::NUMBER_OF_KINDS,
     114                                sizeof(typeVariables) / sizeof(typeVariables[0]) == ast::TypeDecl::NUMBER_OF_KINDS,
    114115                                "Each type variable kind should have a corresponding mangler prefix"
    115116                        );
Note: See TracChangeset for help on using the changeset viewer.