Lines Matching refs:DC
293 void MangleContext::mangleBlock(const DeclContext *DC, const BlockDecl *BD, in mangleBlock() argument
295 assert(!isa<CXXConstructorDecl>(DC) && !isa<CXXDestructorDecl>(DC)); in mangleBlock()
299 if (const ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(DC)) { in mangleBlock()
302 assert((isa<NamedDecl>(DC) || isa<BlockDecl>(DC)) && in mangleBlock()
304 if (isa<BlockDecl>(DC)) in mangleBlock()
305 for (; DC && isa<BlockDecl>(DC); DC = DC->getParent()) in mangleBlock()
306 (void) getBlockId(cast<BlockDecl>(DC), true); in mangleBlock()
307 assert((isa<TranslationUnitDecl>(DC) || isa<NamedDecl>(DC)) && in mangleBlock()
309 if (const auto *CD = dyn_cast<CXXConstructorDecl>(DC)) in mangleBlock()
311 else if (const auto *DD = dyn_cast<CXXDestructorDecl>(DC)) in mangleBlock()
313 else if (auto ND = dyn_cast<NamedDecl>(DC)) { in mangleBlock()