| 331 | } |
| 332 | |
| 333 | void DebugInfoMap::updateCallMap(std::unique_ptr<ASTNode> Node) { |
| 334 | if (!Node || !Mapper) |
| 335 | return; |
| 336 | |
| 337 | const auto *E = Node->getNode().get<Expr>(); |
| 338 | if (!E) |
| 339 | return; |
| 340 | |
| 341 | auto &Unit = Node->getASTUnit(); |
| 342 | if (updateMacro(util::getDebugLoc(*E), Unit)) { |
| 343 | Mapper->insertMacroNode(*const_cast<Expr *>(E), Unit); |
| 344 | return; |
| 345 | } |
| 346 | |
| 347 | CallMap.emplace(Node->getIndex(), std::move(Node)); |
| 348 | } |
| 349 | |
| 350 | void DebugInfoMap::updateDefMap(std::unique_ptr<ASTDefNode> ADN) { |
| 351 | if (!ADN) |
nothing calls this directly
no test coverage detected