diff options
author | Kazu Hirata <kazu@google.com> | 2023-06-03 09:37:37 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-06-03 09:37:37 -0700 |
commit | 8e6e659cc800a13876d3239f9f29ea6615d86f40 (patch) | |
tree | 46eb7d0d7d9c9f935614ce6f58bcc8a780f179eb /clang/lib/Serialization/GlobalModuleIndex.cpp | |
parent | 8dc7647845a4357f6aee7ffe40839c97f2474d99 (diff) | |
download | llvm-8e6e659cc800a13876d3239f9f29ea6615d86f40.zip llvm-8e6e659cc800a13876d3239f9f29ea6615d86f40.tar.gz llvm-8e6e659cc800a13876d3239f9f29ea6615d86f40.tar.bz2 |
[Serialization] Remove unused function getKnownModules
The last use was removed by:
commit 603cd869f7cdb0da7a545e86a1786f3175f72475
Author: Douglas Gregor <dgregor@apple.com>
Date: Fri Mar 22 18:50:14 2013 +0000
Diffstat (limited to 'clang/lib/Serialization/GlobalModuleIndex.cpp')
-rw-r--r-- | clang/lib/Serialization/GlobalModuleIndex.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/clang/lib/Serialization/GlobalModuleIndex.cpp b/clang/lib/Serialization/GlobalModuleIndex.cpp index 307a147..1b8c130 100644 --- a/clang/lib/Serialization/GlobalModuleIndex.cpp +++ b/clang/lib/Serialization/GlobalModuleIndex.cpp @@ -281,15 +281,6 @@ GlobalModuleIndex::readIndex(StringRef Path) { llvm::Error::success()); } -void -GlobalModuleIndex::getKnownModules(SmallVectorImpl<ModuleFile *> &ModuleFiles) { - ModuleFiles.clear(); - for (unsigned I = 0, N = Modules.size(); I != N; ++I) { - if (ModuleFile *MF = Modules[I].File) - ModuleFiles.push_back(MF); - } -} - void GlobalModuleIndex::getModuleDependencies( ModuleFile *File, SmallVectorImpl<ModuleFile *> &Dependencies) { |