MCPcopy Create free account
hub / github.com/Samsung/UTopia / getArgumentNode

Method getArgumentNode

lib/astirmap/DebugInfoMap.cpp:108–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108std::unique_ptr<ASTDefNode>
109DebugInfoMap::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
123ASTNode *DebugInfoMap::getFromCallMap(const llvm::CallBase &CB) const {
124 auto *TempCB = const_cast<llvm::CallBase *>(&CB);

Callers

nothing calls this directly

Calls 1

getAssignedMethod · 0.80

Tested by

no test coverage detected