Searched refs:ToDC (Results 1 – 2 of 2) sorted by relevance
261 const DeclContext *ToDC = To->getDeclContext()->getPrimaryContext(); in MightInstantiateTo() local262 if (FromDC == ToDC) return true; in MightInstantiateTo()263 if (FromDC->isFileContext() || ToDC->isFileContext()) return false; in MightInstantiateTo()
4712 DeclContext *ToDC = cast_or_null<DeclContext>(Import(cast<Decl>(FromDC))); in ImportContext() local4713 if (!ToDC) in ImportContext()4718 if (RecordDecl *ToRecord = dyn_cast<RecordDecl>(ToDC)) { in ImportContext()4728 } else if (EnumDecl *ToEnum = dyn_cast<EnumDecl>(ToDC)) { in ImportContext()4738 } else if (ObjCInterfaceDecl *ToClass = dyn_cast<ObjCInterfaceDecl>(ToDC)) { in ImportContext()4748 } else if (ObjCProtocolDecl *ToProto = dyn_cast<ObjCProtocolDecl>(ToDC)) { in ImportContext()4760 return ToDC; in ImportContext()