aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/CodeView/SymbolSerializer.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-08-21 20:08:40 +0000
committerZachary Turner <zturner@google.com>2017-08-21 20:08:40 +0000
commitd76dc2d31ef38be5a9edf1239ca3df5a19d3183e (patch)
tree0a5efec38153db0f6ab129a7603ce63593e9935e /llvm/lib/DebugInfo/CodeView/SymbolSerializer.cpp
parent0812c5bea365d23b25d6b79a015e4a12fa28f0a1 (diff)
downloadllvm-d76dc2d31ef38be5a9edf1239ca3df5a19d3183e.zip
llvm-d76dc2d31ef38be5a9edf1239ca3df5a19d3183e.tar.gz
llvm-d76dc2d31ef38be5a9edf1239ca3df5a19d3183e.tar.bz2
[lld/pdb] Speed up construction of publics & globals addr map.
computeAddrMap function calls std::stable_sort with a comparison function that computes deserialized symbols every time its called. In the result deserializeAs<PublicSym32> is called 20-30 times per symbol. It's much faster to calculate it beforehand and pass a pointer to it to the comparison function. Patch by Alex Telishev Differential Revision: https://reviews.llvm.org/D36941 llvm-svn: 311373
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView/SymbolSerializer.cpp')
0 files changed, 0 insertions, 0 deletions