summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-ar/ArchiveReader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-ar/ArchiveReader.cpp')
-rw-r--r--llvm/tools/llvm-ar/ArchiveReader.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/tools/llvm-ar/ArchiveReader.cpp b/llvm/tools/llvm-ar/ArchiveReader.cpp
index 1271d02028e..75a6880433c 100644
--- a/llvm/tools/llvm-ar/ArchiveReader.cpp
+++ b/llvm/tools/llvm-ar/ArchiveReader.cpp
@@ -363,18 +363,6 @@ Archive::loadSymbolTable(std::string* ErrorMsg) {
return true;
}
-// Open the archive and load just the symbol tables
-Archive* Archive::OpenAndLoadSymbols(const sys::Path& File,
- LLVMContext& C,
- std::string* ErrorMessage) {
- OwningPtr<Archive> result ( new Archive(File, C) );
- if (result->mapToMemory(ErrorMessage))
- return NULL;
- if (!result->loadSymbolTable(ErrorMessage))
- return NULL;
- return result.take();
-}
-
// Look up one symbol in the symbol table and return the module that defines
// that symbol.
Module*
OpenPOWER on IntegriCloud