| 106 | } |
| 107 | |
| 108 | std::unique_ptr<ASTDefNode> |
| 109 | DebugInfoMap::getArgumentNode(Expr &E, unsigned ArgNo, ASTUnit &U) const { |
| 110 | auto ADN = std::make_unique<ASTDefNode>(E, ArgNo, U); |
| 111 | assert(ADN && "Unexpected Program State"); |
| 112 | |
| 113 | if (auto *CVD = getConstVarDecl(*ADN)) { |
| 114 | auto *Assigned = ADN->getAssigned(); |
| 115 | assert(Assigned && "Unexpected Program State"); |
| 116 | |
| 117 | ADN = std::make_unique<ASTDefNode>(*CVD, Assigned->getASTUnit()); |
| 118 | assert(ADN && "Unexpected Program State"); |
| 119 | } |
| 120 | return ADN; |
| 121 | } |
| 122 | |
| 123 | ASTNode *DebugInfoMap::getFromCallMap(const llvm::CallBase &CB) const { |
| 124 | auto *TempCB = const_cast<llvm::CallBase *>(&CB); |
nothing calls this directly
no test coverage detected