summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
Diffstat (limited to 'clang')
-rw-r--r--clang/include/clang/Serialization/ASTReader.h3
-rw-r--r--clang/lib/Serialization/ASTReader.cpp10
2 files changed, 0 insertions, 13 deletions
diff --git a/clang/include/clang/Serialization/ASTReader.h b/clang/include/clang/Serialization/ASTReader.h
index 4ed86480c8f..bd2060192e9 100644
--- a/clang/include/clang/Serialization/ASTReader.h
+++ b/clang/include/clang/Serialization/ASTReader.h
@@ -519,9 +519,6 @@ public:
/// \brief Add an in-memory buffer the list of known buffers
void addInMemoryBuffer(StringRef FileName, llvm::MemoryBuffer *Buffer);
-
- /// \brief Exports the list of loaded modules with their corresponding names
- void exportLookup(SmallVector<ModuleOffset, 16> &Target);
};
} // end namespace serialization
diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp
index 840b665cd76..cc239c35ead 100644
--- a/clang/lib/Serialization/ASTReader.cpp
+++ b/clang/lib/Serialization/ASTReader.cpp
@@ -5765,16 +5765,6 @@ void ModuleManager::addInMemoryBuffer(StringRef FileName,
Buffer->getBufferSize(), 0);
InMemoryBuffers[Entry] = Buffer;
}
-/// \brief Exports the list of loaded modules with their corresponding names
-void ModuleManager::exportLookup(SmallVector<ModuleOffset, 16> &Target) {
- Target.reserve(size());
- for (ModuleConstIterator I = Chain.begin(), E = Chain.end();
- I != E; ++I) {
- Target.push_back(ModuleOffset((*I)->SLocEntryBaseOffset,
- (*I)->FileName));
- }
- std::sort(Target.begin(), Target.end());
-}
ModuleManager::ModuleManager(const FileSystemOptions &FSO) : FileMgr(FSO) { }
OpenPOWER on IntegriCloud