Changeset 0522ebe for src/SymTab


Ignore:
Timestamp:
Feb 26, 2024, 3:49:23 AM (19 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
a4da45e
Parents:
c17dc80
Message:

Add EnumPosType to type system

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Mangler.cc

    rc17dc80 r0522ebe  
    5959        void postvisit( const ast::QualifiedType * qualType );
    6060
     61        void postvisit( const ast::EnumPosType * posType );
     62
    6163        /// The result is the current constructed mangled name.
    6264        std::string result() const { return mangleName; }
     
    277279        assertf( decl->kind < ast::TypeDecl::Kind::NUMBER_OF_KINDS, "Unhandled type variable kind: %d", decl->kind );
    278280        mangleName += Encoding::typeVariables[ decl->kind ] + std::to_string( decl->name.length() ) + decl->name;
     281}
     282
     283void Mangler::postvisit( const ast::EnumPosType * pos ) {
     284        postvisit( pos->instance );
     285        mangleName += "_pos";
    279286}
    280287
Note: See TracChangeset for help on using the changeset viewer.