Lines Matching refs:Module
329 // Detailed record is important since it is used for the module cache hash.
962 // This is the module's main file.
1055 // Find which module file this entry lands in.
1065 /// \brief Find the location where the module F is imported.
1306 // This header is part of a module. Associate it with the module to enable
1307 // implicit module import.
1309 Module *Mod = Reader.getSubmodule(GlobalSMID);
1414 // If we've already searched this module file, skip it now.
1438 // \brief Retrieve the identifier info found within the module
1490 // Module Macro.
1508 Module *Owner = 0;
1511 if (Owner->NameVisibility == Module::Hidden) {
1512 // The owning module is not visible, and this macro definition
1517 // module is not yet visible.
1592 Module *NewOwner, ASTReader &Reader) {
1594 Module *PrevOwner = 0;
1610 Module *Owner) {
1887 // all import locations of module imports after the global source
2008 Error("error at end of module block in AST file");
2012 // Instead, mark it as needing a lookup map to be built if this module
2129 // Introduce the global -> local mapping for types within this module.
2132 // Introduce the local -> global mapping for types within this module.
2154 // module.
2159 // module.
2164 // module.
2224 // module.
2229 // module.
2318 // module.
2322 // module.
2388 // This module. Base was 2 when being compiled.
2401 // Continuous range maps we may be updating in our module.
2422 Error("SourceLocation remap refers to unknown module");
2553 // this module.
2557 // this module.
2689 // If we aren't loading a module (which has its own exports), make
2737 // Introduce the global -> local mapping for macros within this module.
2740 // Introduce the local -> global mapping for macros within this module.
2787 void ASTReader::makeNamesVisible(const HiddenNames &Names, Module *Owner) {
2811 void ASTReader::makeModuleVisible(Module *Mod,
2812 Module::NameVisibilityKind NameVisibility,
2815 llvm::SmallPtrSet<Module *, 4> Visited;
2816 SmallVector<Module *, 4> Stack;
2823 // This module already has this level of visibility (or greater), so
2833 // Update the module's name visibility.
2836 // If we've already deserialized any names from this module,
2846 for (Module::submodule_iterator Sub = Mod->submodule_begin(),
2854 SmallVector<Module *, 16> Exports;
2856 for (SmallVectorImpl<Module *>::iterator
2858 Module *Exported = *I;
2872 // FIXME: Need note where the other module was imported.
2972 // Setup the import locations and notify the module manager that we've
2973 // committed to these module files.
2998 // Resolve any unresolved module exports.
3002 Module *ResolvedMod = getSubmodule(GlobalID);
3007 Module::Conflict Conflict;
3022 Module::ExportDecl(ResolvedMod, Unresolved.IsWildcard));
3080 // Load module file below.
3084 // The module file was missing; if the client handle handle, that, return
3091 std::string Msg = "Unable to load module \"" + FileName.str() + "\": "
3098 // We couldn't load the module file because it is out-of-date. If the
3105 std::string Msg = "Unable to load module \"" + FileName.str() + "\": "
3112 assert(M && "Missing module file");
3115 // module?
3181 // Record that we've loaded this module.
3324 // Re-export any modules that were imported by a non-module AST file.
3326 if (Module *Imported = getSubmodule(ImportedModules[I]))
3327 makeModuleVisible(Imported, Module::AllVisible,
3627 Module *CurrentModule = 0;
3658 Error("malformed module definition");
3673 Module *ParentModule = 0;
3677 // Retrieve this (sub)module from the module map, creating it if
3716 // Clear out data that will be replaced by what is the module file.
3835 // module.
3839 // module.
3918 Module::LinkLibrary(Blob, Record[0]));
4227 /// \brief \arg SLocMapI points at a chunk of a module that contains no
4229 /// looking for. Find the next module that contains entities and return the ID
5700 // this context in this module.
5715 // Look for this name within this module.
5748 /// \brief Retrieve the "definitive" module file for the definition of the
5751 /// The "definitive" module file is the only place where we need to look to
5755 /// single place in the source code, so they have definitive module files
5757 /// definitions in multiple different module files.
5797 // If we can definitively determine which module file to look into,
5798 // only look there. Otherwise, look in all module files.
5831 // this context in this module.
6250 // If we've already searched this module file, skip it now.
6638 Module *ASTReader::getSubmodule(SubmoduleID GlobalID) {
6652 Module *ASTReader::getModule(unsigned ID) {
7333 // Initialize the macro history from chained-PCHs ahead of module imports.
7340 // Handle module imports.