diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-11-28 03:13:02 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-11-28 03:13:02 +0000 |
commit | 8a3312cab36809005be9da79e01e34d9405074d5 (patch) | |
tree | 6e4ea751e110dfd5acdba71058e1e7fc55cbb0e2 /llvm/lib/Bytecode | |
parent | e8d482e76dd8ab7617dd2591b5c3beafd695c504 (diff) | |
download | bcm5719-llvm-8a3312cab36809005be9da79e01e34d9405074d5.tar.gz bcm5719-llvm-8a3312cab36809005be9da79e01e34d9405074d5.zip |
Compute the firstFileOffset correctly after reading the LLVM symbol table.
llvm-svn: 18300
Diffstat (limited to 'llvm/lib/Bytecode')
-rw-r--r-- | llvm/lib/Bytecode/Archive/ArchiveReader.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Bytecode/Archive/ArchiveReader.cpp b/llvm/lib/Bytecode/Archive/ArchiveReader.cpp index 34413e53bd2..34b36a6f38a 100644 --- a/llvm/lib/Bytecode/Archive/ArchiveReader.cpp +++ b/llvm/lib/Bytecode/Archive/ArchiveReader.cpp @@ -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 |