Changeset 8bf784a for src/SymTab
- Timestamp:
- Dec 21, 2016, 2:54:31 PM (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:
- e33f321
- Parents:
- 6d4d1a6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Mangler.cc
r6d4d1a6 r8bf784a 214 214 mangleName << "f"; 215 215 break; 216 case TypeDecl::Ttype: 217 mangleName << "tVARGS"; 218 break; 219 default: 220 assert( false ); 216 221 } // switch 217 222 mangleName << numStream.str(); … … 256 261 if ( ! type->get_forall().empty() ) { 257 262 std::list< std::string > assertionNames; 258 int tcount = 0, dcount = 0, fcount = 0 ;263 int tcount = 0, dcount = 0, fcount = 0, vcount = 0; 259 264 mangleName << "A"; 260 265 for ( Type::ForallList::iterator i = type->get_forall().begin(); i != type->get_forall().end(); ++i ) { … … 269 274 fcount++; 270 275 break; 276 case TypeDecl::Ttype: 277 vcount++; 278 break; 279 default: 280 assert( false ); 271 281 } // switch 272 282 varNums[ (*i )->get_name() ] = std::pair< int, int >( nextVarNum++, (int )(*i )->get_kind() ); … … 280 290 } // for 281 291 } // for 282 mangleName << tcount << "_" << dcount << "_" << fcount << "_" ;292 mangleName << tcount << "_" << dcount << "_" << fcount << "_" << vcount << "_"; 283 293 std::copy( assertionNames.begin(), assertionNames.end(), std::ostream_iterator< std::string >( mangleName, "" ) ); 284 294 mangleName << "_";
Note: See TracChangeset
for help on using the changeset viewer.