35 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t4# RUN: echo "A B 5" > %t.call_graph5# RUN: echo "B C 50" >> %t.call_graph6# RUN: echo "C D 40" >> %t.call_graph7# RUN: echo "D B 10" >> %t.call_graph8# RUN: ld.lld -e A %t --call-graph-ordering-file %t.call_graph -o %t2 --call-graph-profile-sort=hfsort --print-symbol-order=%t39# RUN: FileCheck %s --input-file %t310 11# CHECK: B12# CHECK-NEXT: C13# CHECK-NEXT: D14# CHECK-NEXT: A15 16.section .text.A,"ax",@progbits17.globl A18A:19 nop20 21.section .text.B,"ax",@progbits22.globl B23B:24 nop25 26.section .text.C,"ax",@progbits27.globl C28C:29 nop30 31.section .text.D,"ax",@progbits32.globl D33D:34 nop35