Changeset e1f7eef for src/SymTab/Mangler.cc
- Timestamp:
- Jan 18, 2019, 3:49:02 PM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- 4cf2472, c018b85
- Parents:
- 95b8aa7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Mangler.cc
r95b8aa7 re1f7eef 69 69 typedef std::map< std::string, std::pair< std::string, int > > VarMapType; 70 70 VarMapType varNums; ///< Map of type variables to indices 71 int nextVarNum; ///< Next type variable index 71 72 const ResolvExpr::TypeEnvironment* env; ///< optional environment for substitutions 72 int nextVarNum; ///< Next type variable index73 73 bool isTopLevel; ///< Is the Mangler at the top level 74 74 bool mangleOverridable; ///< Specially mangle overridable built-in methods … … 78 78 bool inQualifiedType = false; ///< Add start/end delimiters around qualified type 79 79 80 public: 80 81 Mangler( bool mangleOverridable, bool typeMode, bool mangleGenericParams, 81 82 int nextVarNum, const ResolvExpr::TypeEnvironment* env, 82 83 const VarMapType& varNums ); 83 84 85 private: 84 86 void mangleDecl( DeclarationWithType *declaration ); 85 87 void mangleRef( ReferenceToType *refType, std::string prefix ); … … 127 129 int nextVarNum, const ResolvExpr::TypeEnvironment* env, 128 130 const VarMapType& varNums ) 129 : nextVarNum( nextVarNum ), varNums( varNums), env( env ), isTopLevel( false ),131 : varNums( varNums ), nextVarNum( nextVarNum ), env( env ), isTopLevel( false ), 130 132 mangleOverridable( mangleOverridable ), typeMode( typeMode ), 131 133 mangleGenericParams( mangleGenericParams ) {} … … 359 361 // replace type with substitution name if environment is available and bound 360 362 if ( env ) { 361 const EqvClass* varClass = env->lookup( (*i)->name );363 const ResolvExpr::EqvClass* varClass = env->lookup( (*i)->name ); 362 364 if ( varClass && varClass->type ) { 363 365 PassVisitor<Mangler> sub_mangler(
Note: See TracChangeset
for help on using the changeset viewer.