Changes in src/ResolvExpr/RenameVars.cc [1690778:ad51cc2]
- File:
-
- 1 edited
-
src/ResolvExpr/RenameVars.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/RenameVars.cc
r1690778 rad51cc2 10 10 // Created On : Sun May 17 12:05:18 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Apr 30 17:07:57 201913 // Update Count : 712 // Last Modified On : Wed Mar 2 17:36:32 2016 13 // Update Count : 5 14 14 // 15 15 … … 39 39 private: 40 40 int level, resetCount; 41 std::list< std:: unordered_map< std::string, std::string > > mapStack;41 std::list< std::map< std::string, std::string > > mapStack; 42 42 }; 43 43 … … 55 55 namespace { 56 56 RenameVars::RenameVars() : level( 0 ), resetCount( 0 ) { 57 mapStack.push_front( std:: unordered_map< std::string, std::string >() );57 mapStack.push_front( std::map< std::string, std::string >() ); 58 58 } 59 59 … … 65 65 void RenameVars::previsit( TypeInstType * instType ) { 66 66 previsit( (Type *)instType ); 67 std:: unordered_map< std::string, std::string >::const_iterator i = mapStack.front().find( instType->name );67 std::map< std::string, std::string >::const_iterator i = mapStack.front().find( instType->name ); 68 68 if ( i != mapStack.front().end() ) { 69 69 instType->name = i->second;
Note:
See TracChangeset
for help on using the changeset viewer.