[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / cgprofile-reproduce.s
blob1b1b36151da99d1ab07a8dede18725f134016f36
1 # REQUIRES: x86
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
4 # RUN: echo "A B 5" > %t.call_graph
5 # RUN: echo "B C 50" >> %t.call_graph
6 # RUN: echo "C D 40" >> %t.call_graph
7 # RUN: echo "D B 10" >> %t.call_graph
8 # RUN: ld.lld -e A %t --call-graph-ordering-file %t.call_graph -o %t2 --call-graph-profile-sort=hfsort --print-symbol-order=%t3
9 # RUN: ld.lld -e A %t --symbol-ordering-file %t3 -o %t2
10 # RUN: llvm-readobj --symbols %t2 | FileCheck %s
12 # CHECK: Name: A
13 # CHECK-NEXT: Value: 0x201123
14 # CHECK: Name: B
15 # CHECK-NEXT: Value: 0x201120
16 # CHECK: Name: C
17 # CHECK-NEXT: Value: 0x201121
18 # CHECK: Name: D
19 # CHECK-NEXT: Value: 0x201122
21 .section .text.A,"ax",@progbits
22 .globl A
24 nop
26 .section .text.B,"ax",@progbits
27 .globl B
29 nop
31 .section .text.C,"ax",@progbits
32 .globl C
34 nop
36 .section .text.D,"ax",@progbits
37 .globl D
39 nop