[ELF] relocateNonAlloc: clean up workaround code
[llvm-project.git] / lld / test / COFF / cgprofile-print.s
blobe82185c0f30b1f6bf45b2cd3450277604d5b2f68
1 # REQUIRES: x86
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-win32 %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: lld-link /subsystem:console /entry:A %t /call-graph-ordering-file:%t.call_graph /out:%t2 /print-symbol-order:%t3
9 # RUN: FileCheck %s --input-file %t3
11 # CHECK: B
12 # CHECK-NEXT: C
13 # CHECK-NEXT: D
14 # CHECK-NEXT: A
16 .section .text, "x", one_only, A
17 .globl A
19 nop
21 .section .text, "x", one_only, B
22 .globl B
24 nop
26 .section .text, "x", one_only, C
27 .globl C
29 nop
31 .section .text, "x", one_only, D
32 .globl D
34 nop