diff options
Diffstat (limited to 'tools/llvm-ar/ArchiveReader.cpp')
-rw-r--r-- | tools/llvm-ar/ArchiveReader.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tools/llvm-ar/ArchiveReader.cpp b/tools/llvm-ar/ArchiveReader.cpp index 1271d02028..75a6880433 100644 --- a/tools/llvm-ar/ArchiveReader.cpp +++ b/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* |