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.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/tools/llvm-ar/ArchiveReader.cpp b/llvm/tools/llvm-ar/ArchiveReader.cpp
index a9df13eca11..8eba5954561 100644
--- a/llvm/tools/llvm-ar/ArchiveReader.cpp
+++ b/llvm/tools/llvm-ar/ArchiveReader.cpp
@@ -207,7 +207,6 @@ Archive::loadArchive(std::string* error) {
// Set up parsing
members.clear();
- symTab.clear();
const char *At = base;
const char *End = mapfile->getBufferEnd();
@@ -226,14 +225,6 @@ Archive::loadArchive(std::string* error) {
// check if this is the foreign symbol table
if (mbr->isSVR4SymbolTable() || mbr->isBSD4SymbolTable()) {
- // We just save this but don't do anything special
- // with it. It doesn't count as the "first file".
- if (foreignST) {
- // What? Multiple foreign symbol tables? Just chuck it
- // and retain the last one found.
- delete foreignST;
- }
- foreignST = mbr;
At += mbr->getSize();
if ((intptr_t(At) & 1) == 1)
At++;
@@ -281,7 +272,6 @@ Archive::loadSymbolTable(std::string* ErrorMsg) {
// Set up parsing
members.clear();
- symTab.clear();
const char *At = base;
const char *End = mapfile->getBufferEnd();
OpenPOWER on IntegriCloud