Lines Matching refs:FromD
86 void ImportDefinitionIfNeeded(Decl *FromD, Decl *ToD = nullptr);
2026 void ASTNodeImporter::ImportDefinitionIfNeeded(Decl *FromD, Decl *ToD) { in ImportDefinitionIfNeeded() argument
2027 if (!FromD) in ImportDefinitionIfNeeded()
2031 ToD = Importer.Import(FromD); in ImportDefinitionIfNeeded()
2036 if (RecordDecl *FromRecord = dyn_cast<RecordDecl>(FromD)) { in ImportDefinitionIfNeeded()
2045 if (EnumDecl *FromEnum = dyn_cast<EnumDecl>(FromD)) { in ImportDefinitionIfNeeded()
6086 Decl *ASTImporter::GetAlreadyImportedOrNull(Decl *FromD) { in GetAlreadyImportedOrNull() argument
6087 llvm::DenseMap<Decl *, Decl *>::iterator Pos = ImportedDecls.find(FromD); in GetAlreadyImportedOrNull()
6090 ASTNodeImporter(*this).ImportDefinitionIfNeeded(FromD, ToD); in GetAlreadyImportedOrNull()
6097 Decl *ASTImporter::Import(Decl *FromD) { in Import() argument
6098 if (!FromD) in Import()
6104 llvm::DenseMap<Decl *, Decl *>::iterator Pos = ImportedDecls.find(FromD); in Import()
6107 Importer.ImportDefinitionIfNeeded(FromD, ToD); in Import()
6112 Decl *ToD = Importer.Visit(FromD); in Import()
6117 ImportedDecls[FromD] = ToD; in Import()
6119 if (TagDecl *FromTag = dyn_cast<TagDecl>(FromD)) { in Import()
6123 } else if (TypedefNameDecl *FromTypedef = dyn_cast<TypedefNameDecl>(FromD)) { in Import()