Ignore:
Timestamp:
Feb 26, 2024, 8:17:20 AM (19 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
f1149ac
Parents:
1bb76ad (diff), a4da45e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Mangler.cc

    r1bb76ad r3f9a8d0  
    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.