[PATCH] D39950: [DebugInfo] Stable sort symbols to remove non-deterministic ordering
Mandeep Singh Grang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 25 11:56:10 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL326056: [DebugInfo] Stable sort symbols to remove non-deterministic ordering (authored by mgrang, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D39950?vs=122608&id=135840#toc
Repository:
rL LLVM
https://reviews.llvm.org/D39950
Files:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Index: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -1780,7 +1780,7 @@
}
// Sort the symbols by offset within the section.
- std::sort(
+ std::stable_sort(
List.begin(), List.end(), [&](const SymbolCU &A, const SymbolCU &B) {
unsigned IA = A.Sym ? Asm->OutStreamer->GetSymbolOrder(A.Sym) : 0;
unsigned IB = B.Sym ? Asm->OutStreamer->GetSymbolOrder(B.Sym) : 0;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39950.135840.patch
Type: text/x-patch
Size: 590 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180225/0f6b41e8/attachment.bin>
More information about the llvm-commits
mailing list