diff options
author | Ben Langmuir <blangmuir@apple.com> | 2015-01-13 17:47:29 +0000 |
---|---|---|
committer | Ben Langmuir <blangmuir@apple.com> | 2015-01-13 17:47:29 +0000 |
commit | d3d7f3b5bd8467c60e3b223d6d10366e6d2e0c90 (patch) | |
tree | 6fc055bc6abc78e4c6d365ca88511dad8053f77f /clang/lib/Lex/ModuleMap.cpp | |
parent | 7d3d50bcb223e1e4c55592fe441cc0cc8369b7d9 (diff) | |
download | bcm5719-llvm-d3d7f3b5bd8467c60e3b223d6d10366e6d2e0c90.tar.gz bcm5719-llvm-d3d7f3b5bd8467c60e3b223d6d10366e6d2e0c90.zip |
Remove unused method canInferFrameworkModule
llvm-svn: 225801
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
-rw-r--r-- | clang/lib/Lex/ModuleMap.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/clang/lib/Lex/ModuleMap.cpp b/clang/lib/Lex/ModuleMap.cpp index c5e317a0ba6..132bd62b5f3 100644 --- a/clang/lib/Lex/ModuleMap.cpp +++ b/clang/lib/Lex/ModuleMap.cpp @@ -563,30 +563,6 @@ ModuleMap::findOrCreateModule(StringRef Name, Module *Parent, bool IsFramework, return std::make_pair(Result, true); } -bool ModuleMap::canInferFrameworkModule(const DirectoryEntry *ParentDir, - StringRef Name, bool &IsSystem) const { - // Check whether we have already looked into the parent directory - // for a module map. - llvm::DenseMap<const DirectoryEntry *, InferredDirectory>::const_iterator - inferred = InferredDirectories.find(ParentDir); - if (inferred == InferredDirectories.end()) - return false; - - if (!inferred->second.InferModules) - return false; - - // We're allowed to infer for this directory, but make sure it's okay - // to infer this particular module. - bool canInfer = std::find(inferred->second.ExcludedModules.begin(), - inferred->second.ExcludedModules.end(), - Name) == inferred->second.ExcludedModules.end(); - - if (canInfer && inferred->second.InferSystemModules) - IsSystem = true; - - return canInfer; -} - /// \brief For a framework module, infer the framework against which we /// should link. static void inferFrameworkLink(Module *Mod, const DirectoryEntry *FrameworkDir, |