Lines Matching defs:Scope
260 static StringRef getPrettyScopeName(const DIScope *Scope) {
261 StringRef ScopeName = Scope->getName();
265 switch (Scope->getTag()) {
279 const DIScope *Scope, SmallVectorImpl<StringRef> &QualifiedNameComponents) {
281 while (Scope != nullptr) {
283 ClosestSubprogram = dyn_cast<DISubprogram>(Scope);
288 if (const auto *Ty = dyn_cast<DICompositeType>(Scope))
291 StringRef ScopeName = getPrettyScopeName(Scope);
294 Scope = Scope->getScope();
323 std::string CodeViewDebug::getFullyQualifiedName(const DIScope *Scope,
330 collectParentScopeNames(Scope, QualifiedNameComponents);
335 const DIScope *Scope = Ty->getScope();
336 return getFullyQualifiedName(Scope, getPrettyScopeName(Ty));
339 TypeIndex CodeViewDebug::getScopeIndex(const DIScope *Scope) {
350 if (!Scope || isa<DIFile>(Scope) || isa<DISubprogram>(Scope))
353 assert(!isa<DIType>(Scope) && "shouldn't make a namespace scope for a type");
356 auto I = TypeIndices.find({Scope, nullptr});
361 std::string ScopeName = getFullyQualifiedName(Scope);
364 return recordTypeIndexForDINode(Scope, TI);
399 const DIScope *Scope = SP->getScope();
401 if (const auto *Class = dyn_cast_or_null<DICompositeType>(Scope)) {
411 TypeIndex ParentScope = getScopeIndex(Scope);
514 const DIScope *Scope = DL->getScope();
515 if (!Scope)
1289 LexicalScope *Scope = LScopes.findLexicalScope(VI.Loc);
1292 if (!Scope)
1324 for (const InsnRange &Range : Scope->getRanges()) {
1334 recordLocalVariable(std::move(Var), Scope);
1458 LexicalScope *Scope = nullptr;
1460 Scope = LScopes.findInlinedScope(DIVar->getScope(), InlinedAt);
1462 Scope = LScopes.findLexicalScope(DIVar->getScope());
1464 if (!Scope)
1471 recordLocalVariable(std::move(Var), Scope);
1607 if (DIScope *Scope = T->getScope()) {
1608 switch (Scope->getTag()) {
2232 for (const DIScope *Scope = ImmediateScope; Scope != nullptr;
2233 Scope = Scope->getScope()) {
2234 if (isa<DISubprogram>(Scope)) {
2974 for (LexicalScope *Scope : Scopes)
2975 collectLexicalBlockInfo(*Scope, Blocks, Locals, Globals);
2981 LexicalScope &Scope,
2985 if (Scope.isAbstractScope())
2991 auto LI = ScopeVariables.find(&Scope);
2994 auto GI = ScopeGlobals.find(Scope.getScopeNode());
2997 const DILexicalBlock *DILB = dyn_cast<DILexicalBlock>(Scope.getScopeNode());
2998 const SmallVectorImpl<InsnRange> &Ranges = Scope.getRanges();
3031 collectLexicalBlockInfo(Scope.getChildren(),
3060 collectLexicalBlockInfo(Scope.getChildren(),
3265 DIScope *Scope = DIGV->getScope();
3267 if (Scope && isa<DILocalScope>(Scope)) {
3271 {Scope, std::unique_ptr<GlobalVariableList>()});
3290 const DIScope *Scope = DIGV->getScope();
3292 getFullyQualifiedName(Scope, DIGV->getName());
3297 const DIScope *Scope = DIGV->getScope();
3299 getFullyQualifiedName(Scope, DIGV->getName());
3374 const DIScope *Scope = DTy->getScope();
3388 getFullyQualifiedName(Scope, DTy->getName()));
3414 const DIScope *Scope = DIGV->getScope();
3418 Scope = MemberDecl->getScope();
3423 (moduleIsInFortran() || (Scope && isa<DILocalScope>(Scope)))
3425 : getFullyQualifiedName(Scope, DIGV->getName());