Compute the firstFileOffset correctly after reading the LLVM symbol table.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18300 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2004-11-28 03:13:02 +00:00
parent 04cf0c29a2
commit 8dde18fc50
2 changed files with 6 additions and 4 deletions

View File

@ -354,9 +354,10 @@ Archive::loadSymbolTable() {
// See if its the symbol table
if (mbr->isLLVMSymbolTable()) {
parseSymbolTable(mbr->getData(), mbr->getSize());
FirstFile = At + mbr->getSize();
At += mbr->getSize();
if ((intptr_t(At) & 1) == 1)
FirstFile++;
At++;
FirstFile = At;
} else {
// There's no symbol table in the file. We have to rebuild it from scratch
// because the intent of this method is to get the symbol table loaded so

View File

@ -354,9 +354,10 @@ Archive::loadSymbolTable() {
// See if its the symbol table
if (mbr->isLLVMSymbolTable()) {
parseSymbolTable(mbr->getData(), mbr->getSize());
FirstFile = At + mbr->getSize();
At += mbr->getSize();
if ((intptr_t(At) & 1) == 1)
FirstFile++;
At++;
FirstFile = At;
} else {
// There's no symbol table in the file. We have to rebuild it from scratch
// because the intent of this method is to get the symbol table loaded so