Skip to content

Commit 5cdb84e

Browse files
committed
Rebase on llvm changes.
Created using spr 1.3.6-beta.1
2 parents c5a12e9 + 759a709 commit 5cdb84e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

llvm/test/CodeGen/X86/call-graph-section-assembly.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
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.

llvm/test/MC/X86/verify-callgraph-section.s

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
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

0 commit comments

Comments
 (0)