]> granicus.if.org Git - clang/commitdiff
Remove unused function ModuleManager::exportLookup()
authorDouglas Gregor <dgregor@apple.com>
Fri, 19 Aug 2011 21:12:29 +0000 (21:12 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 19 Aug 2011 21:12:29 +0000 (21:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138079 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Serialization/ASTReader.h
lib/Serialization/ASTReader.cpp

index 4ed86480c8f9d2c3629c578822703a62fa452e1d..bd2060192e9b1db261fffca17d48a45abb4c2e1d 100644 (file)
@@ -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
index 840b665cd7681d149da0815acf4990fb351fca3f..cc239c35eade29872f88264c48067004a06aff2d 100644 (file)
@@ -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) { }