[llvm-commits] CVS: llvm/lib/Bytecode/Archive/ArchiveReader.cpp
Reid Spencer
reid at x10sys.com
Sat Nov 27 19:13:12 PST 2004
Changes in directory llvm/lib/Bytecode/Archive:
ArchiveReader.cpp updated: 1.32 -> 1.33
---
Log message:
Compute the firstFileOffset correctly after reading the LLVM symbol table.
---
Diffs of the changes: (+3 -2)
Index: llvm/lib/Bytecode/Archive/ArchiveReader.cpp
diff -u llvm/lib/Bytecode/Archive/ArchiveReader.cpp:1.32 llvm/lib/Bytecode/Archive/ArchiveReader.cpp:1.33
--- llvm/lib/Bytecode/Archive/ArchiveReader.cpp:1.32 Tue Nov 23 16:35:39 2004
+++ llvm/lib/Bytecode/Archive/ArchiveReader.cpp Sat Nov 27 21:13:02 2004
@@ -354,9 +354,10 @@
// 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
More information about the llvm-commits
mailing list