| commit | a3ccf3ddbd12a0db6522f9990a9e30e535ca76dc | [log] [tgz] |
|---|---|---|
| author | Kuba Brecka <kuba.brecka@gmail.com> | Tue Nov 15 21:07:03 2016 +0000 |
| committer | Kuba Brecka <kuba.brecka@gmail.com> | Tue Nov 15 21:07:03 2016 +0000 |
| tree | a3739b4cd583ecc736fd6e448e123987b1c641f4 | |
| parent | ed55a05b010eb62747e19ad179eb8555e28483ac [diff] |
Fix llvm-symbolizer to correctly sort a symbol array and calculate symbol sizes Sometimes, llvm-symbolizer gives wrong results due to incorrect sizes of some symbols. The reason for that was an incorrectly sorted array in computeSymbolSizes. The comparison function used subtraction of unsigned types, which is incorrect. Let's change this to return explicit -1 or 1. Differential Revision: https://reviews.llvm.org/D26537 llvm-svn: 287028