Searched refs:ToDC (Results 1 – 2 of 2) sorted by relevance
260 const DeclContext *ToDC = To->getDeclContext()->getPrimaryContext(); in MightInstantiateTo() local261 if (FromDC == ToDC) return true; in MightInstantiateTo()262 if (FromDC->isFileContext() || ToDC->isFileContext()) return false; in MightInstantiateTo()
4668 DeclContext *ToDC = cast_or_null<DeclContext>(Import(cast<Decl>(FromDC))); in ImportContext() local4669 if (!ToDC) in ImportContext()4674 if (RecordDecl *ToRecord = dyn_cast<RecordDecl>(ToDC)) { in ImportContext()4684 } else if (EnumDecl *ToEnum = dyn_cast<EnumDecl>(ToDC)) { in ImportContext()4694 } else if (ObjCInterfaceDecl *ToClass = dyn_cast<ObjCInterfaceDecl>(ToDC)) { in ImportContext()4704 } else if (ObjCProtocolDecl *ToProto = dyn_cast<ObjCProtocolDecl>(ToDC)) { in ImportContext()4716 return ToDC; in ImportContext()