Ignore:
Timestamp:
Aug 2, 2018, 5:15:21 PM (5 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
Children:
c20fafd
Parents:
4285544e
Message:

Minor updates to name mangling to eliminate overlaps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Mangler.cc

    r4285544e r7804e2a  
    144144                        void Mangler::postvisit( VoidType * voidType ) {
    145145                                printQualifiers( voidType );
    146                                 mangleName << Encoding::voidType;
     146                                mangleName << Encoding::void_t;
    147147                        }
    148148
     
    195195                                inFunctionType = true;
    196196                                std::list< Type* > returnTypes = getTypes( functionType->returnVals );
    197                                 if (returnTypes.empty()) mangleName << Encoding::voidType;
     197                                if (returnTypes.empty()) mangleName << Encoding::void_t;
    198198                                else acceptAll( returnTypes, *visitor );
    199199                                mangleName << "_";
     
    223223
    224224                        void Mangler::postvisit( StructInstType * aggregateUseType ) {
    225                                 mangleRef( aggregateUseType, "s" );
     225                                mangleRef( aggregateUseType, Encoding::struct_t );
    226226                        }
    227227
    228228                        void Mangler::postvisit( UnionInstType * aggregateUseType ) {
    229                                 mangleRef( aggregateUseType, "u" );
     229                                mangleRef( aggregateUseType, Encoding::union_t );
    230230                        }
    231231
    232232                        void Mangler::postvisit( EnumInstType * aggregateUseType ) {
    233                                 mangleRef( aggregateUseType, "e" );
     233                                mangleRef( aggregateUseType, Encoding::enum_t );
    234234                        }
    235235
Note: See TracChangeset for help on using the changeset viewer.