diff options
author | John Thompson <John.Thompson.JTSoftware@gmail.com> | 2014-04-23 19:04:32 +0000 |
---|---|---|
committer | John Thompson <John.Thompson.JTSoftware@gmail.com> | 2014-04-23 19:04:32 +0000 |
commit | 86bb94f55565c8f7a86b4076318ec837741d6212 (patch) | |
tree | db74b55f0929a8bcb713118b67ecab4acbe88852 /include/clang | |
parent | 437dc6082910fda186545ef41338f57935ed9ccb (diff) |
Quick fix for layering that broke shared library build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207011 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang')
-rw-r--r-- | include/clang/Frontend/ASTUnit.h | 4 | ||||
-rw-r--r-- | include/clang/Frontend/CompilerInstance.h | 4 | ||||
-rw-r--r-- | include/clang/Lex/ModuleLoader.h | 9 |
3 files changed, 14 insertions, 3 deletions
diff --git a/include/clang/Frontend/ASTUnit.h b/include/clang/Frontend/ASTUnit.h index 666e5dd7c7..b730cb9da7 100644 --- a/include/clang/Frontend/ASTUnit.h +++ b/include/clang/Frontend/ASTUnit.h @@ -874,8 +874,10 @@ public: void makeModuleVisible(Module *Mod, Module::NameVisibilityKind Visibility, SourceLocation ImportLoc, bool Complain) override {} - GlobalModuleIndex *loadGlobalModuleIndex(SourceLocation TriggerLoc) + GlobalModuleIndex *loadGlobalModuleIndex(SourceLocation TriggerLoc) override { return 0; } + bool lookupMissingImports(StringRef Name, SourceLocation TriggerLoc) override + { return 0; }; }; } // namespace clang diff --git a/include/clang/Frontend/CompilerInstance.h b/include/clang/Frontend/CompilerInstance.h index 1a89a8a156..a7368bd149 100644 --- a/include/clang/Frontend/CompilerInstance.h +++ b/include/clang/Frontend/CompilerInstance.h @@ -700,7 +700,9 @@ public: return ModuleLoader::HadFatalFailure; } - GlobalModuleIndex *loadGlobalModuleIndex(SourceLocation TriggerLoc); + GlobalModuleIndex *loadGlobalModuleIndex(SourceLocation TriggerLoc) override; + + bool lookupMissingImports(StringRef Name, SourceLocation TriggerLoc) override; }; } // end namespace clang diff --git a/include/clang/Lex/ModuleLoader.h b/include/clang/Lex/ModuleLoader.h index 0a690812a9..7869799c2c 100644 --- a/include/clang/Lex/ModuleLoader.h +++ b/include/clang/Lex/ModuleLoader.h @@ -113,7 +113,14 @@ public: /// \param TriggerLoc The location for what triggered the load. /// \returns Returns null if load failed. virtual GlobalModuleIndex *loadGlobalModuleIndex( - SourceLocation TriggerLoc) = 0; + SourceLocation TriggerLoc) = 0; + + /// Check global module index for missing imports. + /// \param Name The symbol name to look for. + /// \param TriggerLoc The location for what triggered the load. + /// \returns Returns true if any modules with that symbol found. + virtual bool lookupMissingImports(StringRef Name, + SourceLocation TriggerLoc) = 0; bool HadFatalFailure; }; |