[PATCH] D89891: [llvm-ar][Object] Fix detection of need for 64-bit archive symbol tables

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 22 00:17:06 PDT 2020


grimar added inline comments.


================
Comment at: llvm/lib/Object/ArchiveWriter.cpp:294
+  assert((OffsetSize == 4 || OffsetSize == 8) && "Unsupported OffsetSize");
+  uint64_t Size = OffsetSize; // Number of entries
   if (isBSDLike(Kind))
----------------
grimar wrote:
> `Size` is a size of the symbol table, not a number of entries, right? Though I am not sure it makes much sense to have a comment about it, I think it is clear from the function name?
Ah, I see now. It describes that the number of entries is written first.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D89891/new/

https://reviews.llvm.org/D89891



More information about the llvm-commits mailing list