Home | History | Annotate | Download | only in AsmPrinter

Lines Matching refs:Scope

334 /// Check whether we should create a DIE for the given Scope, return true
336 bool DwarfDebug::isLexicalScopeDIENull(LexicalScope *Scope) {
337 if (Scope->isAbstractScope())
341 const SmallVectorImpl<InsnRange> &Ranges = Scope->getRanges();
359 void DwarfDebug::constructAbstractSubprogramScopeDIE(LexicalScope *Scope) {
360 assert(Scope && Scope->getScopeNode());
361 assert(Scope->isAbstractScope());
362 assert(!Scope->getInlinedAt());
364 const MDNode *SP = Scope->getScopeNode();
372 CU.constructAbstractSubprogramScopeDIE(Scope);
705 LexicalScope *Scope) {
707 InfoHolder.addScopeVariable(Scope, AbsDbgVariable.get());
727 if (LexicalScope *Scope =
729 createAbstractVariable(Cleansed, Scope);
743 LexicalScope *Scope = LScopes.findLexicalScope(VI.Loc);
745 // If variable scope is not found then skip this variable.
746 if (!Scope)
749 ensureAbstractVariableIsCreatedIfScoped(Var, Scope->getScopeNode());
752 if (InfoHolder.addScopeVariable(Scope, RegVar.get()))
896 DbgVariable *DwarfDebug::createConcreteVariable(LexicalScope &Scope,
898 ensureAbstractVariableIsCreatedIfScoped(IV, Scope.getScopeNode());
901 InfoHolder.addScopeVariable(&Scope, ConcreteVariables.back().get());
905 // Find variables for each lexical scope.
922 LexicalScope *Scope = nullptr;
924 Scope = LScopes.findInlinedScope(IV.first->getScope(), IA);
926 Scope = LScopes.findLexicalScope(IV.first->getScope());
927 // If variable scope is not found then skip this variable.
928 if (!Scope)
932 DbgVariable *RegVar = createConcreteVariable(*Scope, IV);
964 if (LexicalScope *Scope = LScopes.findLexicalScope(DV->getScope()))
965 createConcreteVariable(*Scope, InlinedVariable(DV, nullptr));
1001 const MDNode *Scope = DL.getScope();
1002 recordSourceLine(DL.getLine(), DL.getCol(), Scope, Flags);
1058 // beginning and end of a scope respectively. Create an inverse map that list
1115 // Make sure that each lexical scope will have a begin/end label.
1196 // If we don't have a lexical scope for this function then there will
1276 if (auto *Scope = cast_or_null<DIScope>(S)) {
1277 Fn = Scope->getFilename();
1278 Dir = Scope->getDirectory();
1279 if (auto *LBF = dyn_cast<DILexicalBlockFile>(Scope))