mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-27 02:31:09 +00:00
When reading the symbol table, make sure to delete the ArchiveMember
created by reading the symbol table. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28251 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9dcb780e23
commit
ffb4d62720
@ -363,6 +363,8 @@ Archive::loadSymbolTable() {
|
|||||||
At += mbr->getSize();
|
At += mbr->getSize();
|
||||||
if ((intptr_t(At) & 1) == 1)
|
if ((intptr_t(At) & 1) == 1)
|
||||||
At++;
|
At++;
|
||||||
|
delete mbr;
|
||||||
|
// Can't be any more symtab headers so just advance
|
||||||
FirstFile = At;
|
FirstFile = At;
|
||||||
} else {
|
} else {
|
||||||
// There's no symbol table in the file. We have to rebuild it from scratch
|
// There's no symbol table in the file. We have to rebuild it from scratch
|
||||||
|
@ -363,6 +363,8 @@ Archive::loadSymbolTable() {
|
|||||||
At += mbr->getSize();
|
At += mbr->getSize();
|
||||||
if ((intptr_t(At) & 1) == 1)
|
if ((intptr_t(At) & 1) == 1)
|
||||||
At++;
|
At++;
|
||||||
|
delete mbr;
|
||||||
|
// Can't be any more symtab headers so just advance
|
||||||
FirstFile = At;
|
FirstFile = At;
|
||||||
} else {
|
} else {
|
||||||
// There's no symbol table in the file. We have to rebuild it from scratch
|
// There's no symbol table in the file. We have to rebuild it from scratch
|
||||||
|
Loading…
x
Reference in New Issue
Block a user