diff options
author | Fangrui Song <i@maskray.me> | 2021-02-13 10:32:27 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2021-02-13 10:32:27 -0800 |
commit | 962b29d7162c8b470ea70540c48d11c2f35d7561 (patch) | |
tree | ac5e9677ee3402299addb9733892da4e51c0521f /llvm/lib/CodeGen/LiveDebugVariables.cpp | |
parent | b45fd233adab967ee272818751b49562958a952a (diff) | |
download | llvm-962b29d7162c8b470ea70540c48d11c2f35d7561.zip llvm-962b29d7162c8b470ea70540c48d11c2f35d7561.tar.gz llvm-962b29d7162c8b470ea70540c48d11c2f35d7561.tar.bz2 |
ELFObjectWriter: Don't sort non-local symbols
As we don't sort local symbols, don't sort non-local symbols. This makes
non-local symbols appear in their register order, which matches GNU as. The
register order is nice in that you can write tests with interleaved CHECK
prefixes, e.g.
```
// CHECK: something about foo
.globl foo
foo:
// CHECK: something about bar
.globl bar
bar:
```
With the lexicographical order, the user needs to place lexicographical smallest
symbol first or keep CHECK prefixes in one place.
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions