File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1- ;; Test .callgraph section in assembly.
21;; Test if temporary labels are generated for each indirect callsite with a callee_type metadata.
32;; Test if the .callgraph section contains the numerical callee type id for each of the temporary
43;; labels generated.
Original file line number Diff line number Diff line change 1- // Test that the assembler produced callgraph section is correct.
1+ /// Test the callgraph section to make sure the indirect callsites
2+ /// (annotated by generated temporary labels .Ltmp*) are associated
3+ /// with the corresponding callee type identifiers.
24
35// RUN: llvm-mc -triple=x86_64 -filetype=obj -o - < %s | llvm-readelf -x .callgraph - | FileCheck %s
46
@@ -41,12 +43,15 @@ ball: # @ball
4143 .quad .Lfunc_begin0
4244 .quad 1
4345 .quad 3
46+ /// Numerical hash of the callee type ID for foo.
4447 // CHECK: 2444f731 f5eecb3e
4548 .quad 0x3ecbeef531f74424
4649 .quad .Ltmp0
50+ /// Numerical hash of the callee type ID for bar.
4751 // CHECK: 5486bc59 814b8e30
4852 .quad 0x308e4b8159bc8654
4953 .quad .Ltmp1
54+ /// Numerical hash of the callee type ID for baz.
5055 // CHECK: 7ade6814 f897fd77
5156 .quad 0x77fd97f81468de7a
5257 .quad .Ltmp2
You can’t perform that action at this time.
0 commit comments