Lines Matching defs:Mod
1500 Module *Mod = HS.findModuleForHeader(key.FE);
1501 Emit32(Out, Writer.getExistingSubmoduleID(Mod));
2073 unsigned ASTWriter::getSubmoduleID(Module *Mod) {
2074 llvm::DenseMap<Module *, unsigned>::iterator Known = SubmoduleIDs.find(Mod);
2078 return SubmoduleIDs[Mod] = NextSubmoduleID++;
2081 unsigned ASTWriter::getExistingSubmoduleID(Module *Mod) const {
2082 if (!Mod)
2086 Known = SubmoduleIDs.find(Mod);
2095 static unsigned getNumberOfModules(Module *Mod) {
2097 for (Module::submodule_iterator Sub = Mod->submodule_begin(),
2098 SubEnd = Mod->submodule_end();
2185 Module *Mod = Q.front();
2187 unsigned ID = getSubmoduleID(Mod);
2193 if (Mod->Parent) {
2194 assert(SubmoduleIDs[Mod->Parent] && "Submodule parent not written?");
2195 Record.push_back(SubmoduleIDs[Mod->Parent]);
2199 Record.push_back(Mod->IsFramework);
2200 Record.push_back(Mod->IsExplicit);
2201 Record.push_back(Mod->IsSystem);
2202 Record.push_back(Mod->InferSubmodules);
2203 Record.push_back(Mod
2204 Record.push_back(Mod->InferExportWildcard);
2205 Stream.EmitRecordWithBlob(DefinitionAbbrev, Record, Mod->Name);
2208 for (unsigned I = 0, N = Mod->Requires.size(); I != N; ++I) {
2212 Mod->Requires[I].data(),
2213 Mod->Requires[I].size());
2217 if (const FileEntry *UmbrellaHeader = Mod->getUmbrellaHeader()) {
2222 } else if (const DirectoryEntry *UmbrellaDir = Mod->getUmbrellaDir()) {
2230 for (unsigned I = 0, N = Mod->Headers.size(); I != N; ++I) {
2234 Mod->Headers[I]->getName());
2237 for (unsigned I = 0, N = Mod->ExcludedHeaders.size(); I != N; ++I) {
2241 Mod->ExcludedHeaders[I]->getName());
2244 TopHeaders = Mod->getTopHeaders(PP->getFileManager());
2253 if (!Mod->Imports.empty()) {
2255 for (unsigned I = 0, N = Mod->Imports.size(); I != N; ++I) {
2256 unsigned ImportedID = getSubmoduleID(Mod->Imports[I]);
2264 if (!Mod->Exports.empty()) {
2266 for (unsigned I = 0, N = Mod->Exports.size(); I != N; ++I) {
2267 if (Module *Exported = Mod->Exports[I].getPointer()) {
2275 Record.push_back(Mod->Exports[I].getInt());
2281 for (unsigned I = 0, N = Mod->LinkLibraries.size(); I != N; ++I) {
2284 Record.push_back(Mod->LinkLibraries[I].IsFramework);
2286 Mod->LinkLibraries[I].Library);
2290 for (Module::submodule_iterator Sub = Mod->submodule_begin(),
2291 SubEnd = Mod->submodule_end();
4861 void ASTWriter::ModuleRead(serialization::SubmoduleID ID, Module *Mod) {
4862 assert(SubmoduleIDs.find(Mod) == SubmoduleIDs.end());
4863 SubmoduleIDs[Mod] = ID;