[all-commits] [llvm/llvm-project] 5e7a42: [llvm-objdump] Replace array_pod_sort with llvm::s...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Mar 25 08:18:47 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5e7a42cf077d2555038be1218907174f4df8e5a5
      https://github.com/llvm/llvm-project/commit/5e7a42cf077d2555038be1218907174f4df8e5a5
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-03-25 (Wed, 25 Mar 2020)

  Changed paths:
    M llvm/tools/llvm-objdump/llvm-objdump.cpp

  Log Message:
  -----------
  [llvm-objdump] Replace array_pod_sort with llvm::stable_sort

llvm-objdump.cpp has 3 array_pod_sort() calls used for symbolization.
array_pod_start() calls qsort() internally and can have different
behaviors across different libcs. Use llvm::stable_sort instead.

Reviewed By: davidb, thopre

Differential Revision: https://reviews.llvm.org/D76739




More information about the All-commits mailing list