diff options
| author | Kuba Brecka <kuba.brecka@gmail.com> | 2016-11-15 21:07:03 +0000 |
|---|---|---|
| committer | Kuba Brecka <kuba.brecka@gmail.com> | 2016-11-15 21:07:03 +0000 |
| commit | a3ccf3ddbd12a0db6522f9990a9e30e535ca76dc (patch) | |
| tree | a3739b4cd583ecc736fd6e448e123987b1c641f4 /llvm/tools/llvm-size/llvm-size.cpp | |
| parent | ed55a05b010eb62747e19ad179eb8555e28483ac (diff) | |
| download | bcm5719-llvm-a3ccf3ddbd12a0db6522f9990a9e30e535ca76dc.tar.gz bcm5719-llvm-a3ccf3ddbd12a0db6522f9990a9e30e535ca76dc.zip | |
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
Diffstat (limited to 'llvm/tools/llvm-size/llvm-size.cpp')
0 files changed, 0 insertions, 0 deletions

