summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-19 16:47:34 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-19 16:47:34 +0000
commitdd3ef1a13b57b9086de5473d2576b16acba98e82 (patch)
tree6931550fc56968a504f243dc311121b7364b74c1 /tools
parent3baf01bd95586875274f6f36cf9931c8ebff2c39 (diff)
downloadllvm-dd3ef1a13b57b9086de5473d2576b16acba98e82.tar.gz
llvm-dd3ef1a13b57b9086de5473d2576b16acba98e82.tar.bz2
llvm-dd3ef1a13b57b9086de5473d2576b16acba98e82.tar.xz
Remove unused function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184320 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/llvm-ar/Archive.h21
-rw-r--r--tools/llvm-ar/ArchiveReader.cpp12
2 files changed, 0 insertions, 33 deletions
diff --git a/tools/llvm-ar/Archive.h b/tools/llvm-ar/Archive.h
index 43b870684c..469a3b45f0 100644
--- a/tools/llvm-ar/Archive.h
+++ b/tools/llvm-ar/Archive.h
@@ -283,27 +283,6 @@ class Archive {
std::string* ErrorMessage ///< An optional error string
);
- /// This method opens an existing archive file from \p Filename and reads in
- /// its symbol table without reading in any of the archive's members. This
- /// reduces both I/O and cpu time in opening the archive if it is to be used
- /// solely for symbol lookup (e.g. during linking). The \p Filename must
- /// exist and be an archive file or an error will be returned. This form
- /// of opening the archive is intended for read-only operations that need to
- /// locate members via the symbol table for link editing. Since the archve
- /// members are not read by this method, the archive will appear empty upon
- /// return. If editing operations are performed on the archive, they will
- /// completely replace the contents of the archive! It is recommended that
- /// if this form of opening the archive is used that only the symbol table
- /// lookup methods (getSymbolTable, findModuleDefiningSymbol, and
- /// findModulesDefiningSymbols) be used.
- /// @returns an Archive* that represents the archive file, or null on error.
- /// @brief Open an existing archive and load its symbols.
- static Archive* OpenAndLoadSymbols(
- const sys::Path& Filename, ///< Name of the archive file to open
- LLVMContext& C, ///< The context to use for global info
- std::string* ErrorMessage=0 ///< An optional error string
- );
-
/// This destructor cleans up the Archive object, releases all memory, and
/// closes files. It does nothing with the archive file on disk. If you
/// haven't used the writeToDisk method by the time the destructor is
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*