aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugVariables.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2021-02-13 10:32:27 -0800
committerFangrui Song <i@maskray.me>2021-02-13 10:32:27 -0800
commit962b29d7162c8b470ea70540c48d11c2f35d7561 (patch)
treeac5e9677ee3402299addb9733892da4e51c0521f /llvm/lib/CodeGen/LiveDebugVariables.cpp
parentb45fd233adab967ee272818751b49562958a952a (diff)
downloadllvm-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