Changeset 25bd9074
- Timestamp:
- Jul 27, 2017, 11:05:51 AM (8 years ago)
- 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)
- Location:
- src/SymTab
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/SymTab/Mangler.cc ¶
r2afec66 r25bd9074 131 131 mangleName << "A0"; 132 132 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 ); 133 139 } 134 140 … … 302 308 // Removed due to restrict not affecting function compatibility in GCC 303 309 // if ( type->get_isRestrict() ) { 304 // mangleName << " R";310 // mangleName << "E"; 305 311 // } // if 306 312 if ( type->get_lvalue() ) { -
TabularUnified src/SymTab/Mangler.h ¶
r2afec66 r25bd9074 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Mangler.h -- 7 // Mangler.h -- 8 8 // 9 9 // Author : Richard C. Bilson … … 39 39 virtual void visit( PointerType *pointerType ); 40 40 virtual void visit( ArrayType *arrayType ); 41 virtual void visit( ReferenceType *refType ); 41 42 virtual void visit( FunctionType *functionType ); 42 43 virtual void visit( StructInstType *aggregateUseType ); … … 48 49 virtual void visit( ZeroType *zeroType ); 49 50 virtual void visit( OneType *oneType ); 50 51 51 52 std::string get_mangleName() { return mangleName.str(); } 52 53 private: … … 58 59 bool mangleOverridable; ///< Specially mangle overridable built-in methods 59 60 bool typeMode; ///< Produce a unique mangled name for a type 60 61 61 62 Mangler( bool mangleOverridable, bool typeMode ); 62 63 Mangler( const Mangler & ); 63 64 64 65 void mangleDecl( DeclarationWithType *declaration ); 65 66 void mangleRef( ReferenceToType *refType, std::string prefix ); 66 67 void mangleGenericRef( ReferenceToType *refType, std::string prefix ); 67 68 68 69 void printQualifiers( Type *type ); 69 70 }; // Mangler
Note: See TracChangeset
for help on using the changeset viewer.