Ignore:
Timestamp:
Jul 27, 2017, 11:05:51 AM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
00e80b6
Parents:
2afec66
git-author:
Rob Schluntz <rschlunt@…> (07/26/17 17:24:59)
git-committer:
Rob Schluntz <rschlunt@…> (07/27/17 11:05:51)
Message:

Add name mangling for reference types

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Mangler.cc

    r2afec66 r25bd9074  
    131131                mangleName << "A0";
    132132                maybeAccept( arrayType->get_base(), *this );
     133        }
     134
     135        void Mangler::visit( ReferenceType *refType ) {
     136                printQualifiers( refType );
     137                mangleName << "R";
     138                maybeAccept( refType->get_base(), *this );
    133139        }
    134140
     
    302308                // Removed due to restrict not affecting function compatibility in GCC
    303309//              if ( type->get_isRestrict() ) {
    304 //                      mangleName << "R";
     310//                      mangleName << "E";
    305311//              } // if
    306312                if ( type->get_lvalue() ) {
Note: See TracChangeset for help on using the changeset viewer.