Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/ManglerCommon.cc

    r4ac402d rb66d14a  
    1515
    1616#include "Mangler.h"
    17 
    18 #include "AST/Decl.hpp"
    19 #include "AST/Type.hpp"
     17#include "SynTree/Type.h"
     18#include "SynTree/Declaration.h"
    2019
    2120namespace SymTab {
     
    4039                        //   - "Di" char32_t
    4140                        //   - "Ds" char16_t
    42                         const std::string basicTypes[ast::BasicType::NUMBER_OF_BASIC_TYPES] = {
     41                        const std::string basicTypes[BasicType::NUMBER_OF_BASIC_TYPES] = {
    4342                                "b",        // _Bool
    4443                                "c",        // char
     
    8079                        // GENERATED END
    8180                        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,
    8382                                "Each basic type kind should have a corresponding mangler letter"
    8483                        );
    8584
    8685                        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 DA
    90                                 { 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" },
    9190                        };
    9291
     
    112111                        };
    113112                        static_assert(
    114                                 sizeof(typeVariables) / sizeof(typeVariables[0]) == ast::TypeDecl::NUMBER_OF_KINDS,
     113                                sizeof(typeVariables) / sizeof(typeVariables[0]) == TypeDecl::NUMBER_OF_KINDS,
    115114                                "Each type variable kind should have a corresponding mangler prefix"
    116115                        );
Note: See TracChangeset for help on using the changeset viewer.