| 268 | } |
| 269 | |
| 270 | void replaceVarDecl(const Variable *from, Variable *to) { |
| 271 | for (auto &it: mDeclMap) { |
| 272 | Decl &decl = it.second; |
| 273 | if (decl.var == from) |
| 274 | decl.var = to; |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | void ref(const std::string &addr, Token *tok) { |
| 279 | auto it = mDeclMap.find(addr); |