diff options
| author | Jan Svoboda <jan_svoboda@apple.com> | 2023-03-01 11:31:49 -0800 |
|---|---|---|
| committer | Jan Svoboda <jan_svoboda@apple.com> | 2023-03-02 13:42:11 -0800 |
| commit | 864054500830d708cc9f7d8a53195a95488e4e0b (patch) | |
| tree | 980ff17095ea43ccf7e4c3a2f04d2b9da0da2976 /lldb/test/API/python_api/debugger/main.cpp | |
| parent | 8350494a612b787286343cf9592fddf5bd5adc36 (diff) | |
[clang][deps] Preserve input ordering in the full output
This patch makes sure the ordering of TUs in the input CDB is preserved in the full output. Previously, the results were pushed into a global vector, potentially out-of-order and then sorted by the input file name. This is non-deterministic when the CDB contains multiple entries with the same input file. This patch fixes that by pre-allocating the output vector and writing directly to the position corresponding to the current input. This also eliminates one critical section.
Reviewed By: benlangmuir
Differential Revision: https://reviews.llvm.org/D145098
Diffstat (limited to 'lldb/test/API/python_api/debugger/main.cpp')
0 files changed, 0 insertions, 0 deletions
