[PATCH] D77640: [llvm-objdump] Fix unstable disassembly output for sections with same address
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 7 11:23:19 PDT 2020
MaskRay added inline comments.
================
Comment at: llvm/tools/llvm-objdump/llvm-objdump.cpp:1231
SectionAddresses.emplace_back(Sec.getAddress(), Sec);
- stable_sort(SectionAddresses);
+ llvm::stable_sort(SectionAddresses,
+ [](const std::pair<uint64_t, SectionRef> &LHS,
----------------
`llvm::stable_sort(SectionAddresses, llvm::less_first())`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77640/new/
https://reviews.llvm.org/D77640
More information about the llvm-commits
mailing list