OSDN Git Service

[PDB] Sort globals symbols by name in GSI hash buckets.
authorZachary Turner <zturner@google.com>
Fri, 6 Jul 2018 02:33:58 +0000 (02:33 +0000)
committerZachary Turner <zturner@google.com>
Fri, 6 Jul 2018 02:33:58 +0000 (02:33 +0000)
commit1ba3969024dc355be53cedbeba61ab2ecc232413
treeb5ee37331f46387894e91f21e68fd5dee9f912e0
parent04d15315b2afc0be0839c9d9045644841c384455
[PDB] Sort globals symbols by name in GSI hash buckets.

It seems like the debugger first computes a symbol's bucket,
and then does a binary search of entries in the bucket using the
symbol's name in order to find it.  If the bucket entries are not
in sorted order, this obviously won't work.  After this patch a
couple of simple test cases show that we generate an exactly
identical GSI hash stream, which is very nice.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@336405 91177308-0d34-0410-b5e6-96231b3b80d8
lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp