mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
d33006d182
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.
15 lines
314 B
ArmAsm
15 lines
314 B
ArmAsm
# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t
|
|
# RUN: llvm-readelf -s %t | FileCheck %s
|
|
|
|
# CHECK: NOTYPE GLOBAL PROTECTED UND undef@v1
|
|
# CHECK-NEXT: NOTYPE GLOBAL HIDDEN {{[1-9]}} def@@v1
|
|
|
|
.protected undef
|
|
.symver undef, undef@@@v1
|
|
call undef
|
|
|
|
.globl def
|
|
.hidden def
|
|
.symver def, def@@@v1
|
|
def:
|