summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-ar/ArchiveReader.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-20 13:00:30 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-20 13:00:30 +0000
commit9502b804f1103fb86f7f2a369b12c858b508e77d (patch)
tree15ab4320ec08ff88d02c18755fc195629b2133d9 /llvm/tools/llvm-ar/ArchiveReader.cpp
parenta86d88c7cdc40bf7102a073196999ee5f810280a (diff)
downloadbcm5719-llvm-9502b804f1103fb86f7f2a369b12c858b508e77d.tar.gz
bcm5719-llvm-9502b804f1103fb86f7f2a369b12c858b508e77d.zip
Remove remaining bits of the old LLVM specific symtab handling.
llvm-svn: 184418
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