aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-08-19 21:12:29 +0000
committerDouglas Gregor <dgregor@apple.com>2011-08-19 21:12:29 +0000
commita3a0cf07fea63c020b0a261cb765ffdb5af991e6 (patch)
tree267df4ceb2e2d144c1c114b643043e0068326154
parent1999c7c8fa8393e0986b12328b2366a18d6038ff (diff)
Remove unused function ModuleManager::exportLookup()
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138079 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Serialization/ASTReader.h3
-rw-r--r--lib/Serialization/ASTReader.cpp10
2 files changed, 0 insertions, 13 deletions
diff --git a/include/clang/Serialization/ASTReader.h b/include/clang/Serialization/ASTReader.h
index 4ed86480c8..bd2060192e 100644
--- a/include/clang/Serialization/ASTReader.h
+++ b/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/lib/Serialization/ASTReader.cpp b/lib/Serialization/ASTReader.cpp
index 840b665cd7..cc239c35ea 100644
--- a/lib/Serialization/ASTReader.cpp
+++ b/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) { }