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