diff options
author | Amir Ayupov <aaupov@fb.com> | 2024-04-29 18:07:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-29 09:07:26 -0700 |
commit | df6d2faa22bf19fb27b5c083e590d13024a8d7cd (patch) | |
tree | 5c32dbd35a2559c7d27ef6ec99fe4b1c60ef8373 /lldb/packages/Python/lldbsuite/test/gdbclientutils.py | |
parent | 1e174a7656f943fa2cad2489a226c90e03ca29ac (diff) | |
download | llvm-df6d2faa22bf19fb27b5c083e590d13024a8d7cd.zip llvm-df6d2faa22bf19fb27b5c083e590d13024a8d7cd.tar.gz llvm-df6d2faa22bf19fb27b5c083e590d13024a8d7cd.tar.bz2 |
[Object] Provide operator< for ELFSymbolRef (#89861)
Normally, operator< accepting DataRefImpl is used when comparing
SymbolRef/ELFSymbolRef. However, it uses std::memcmp which interprets
DataRefImpl union as char string so that the result depends on host
endianness.
For ELFSymbolRef a specialized operator< can be used instead to produce
consistent ordering regardless of endianness by comparing the symbol
table index and symbol index fields separately.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/gdbclientutils.py')
0 files changed, 0 insertions, 0 deletions