Lines Matching refs:Scope
34 DISubprogram *llvm::getDISubprogram(const MDNode *Scope) {
35 if (auto *LocalScope = dyn_cast_or_null<DILocalScope>(Scope))
117 void DebugInfoFinder::processScope(DIScope *Scope) {
118 if (!Scope)
120 if (auto *Ty = dyn_cast<DIType>(Scope)) {
124 if (auto *CU = dyn_cast<DICompileUnit>(Scope)) {
128 if (auto *SP = dyn_cast<DISubprogram>(Scope)) {
132 if (!addScope(Scope))
134 if (auto *LB = dyn_cast<DILexicalBlockBase>(Scope)) {
136 } else if (auto *NS = dyn_cast<DINamespace>(Scope)) {
138 } else if (auto *M = dyn_cast<DIModule>(Scope)) {
231 bool DebugInfoFinder::addScope(DIScope *Scope) {
232 if (!Scope)
234 // FIXME: Ocaml binding generates a scope with no content, we treat it
236 if (Scope->getNumOperands() == 0)
238 if (!NodesSeen.insert(Scope).second)
240 Scopes.push_back(Scope);