@@ -57,7 +57,7 @@ declare void @linkoncealias(...) #1
57
57
; CHECK-DAG: define available_externally void @linkoncealias()
58
58
59
59
; INSTLIMDEF-DAG: Import referencestatics
60
- ; INSTLIMDEF-DAG: define available_externally i32 @referencestatics(i32 %i) !thinlto_src_module !0 {
60
+ ; INSTLIMDEF-DAG: define available_externally i32 @referencestatics(i32 %i) !thinlto_src_module !0 !thinlto_src_file !1 {
61
61
; INSTLIM5-DAG: declare i32 @referencestatics(...)
62
62
declare i32 @referencestatics (...) #1
63
63
@@ -66,27 +66,27 @@ declare i32 @referencestatics(...) #1
66
66
; Ensure that the call is to the properly-renamed function.
67
67
; INSTLIMDEF-DAG: Import staticfunc
68
68
; INSTLIMDEF-DAG: %call = call i32 @staticfunc.llvm.
69
- ; INSTLIMDEF-DAG: define available_externally hidden i32 @staticfunc.llvm.{{.*}} !thinlto_src_module !0 {
69
+ ; INSTLIMDEF-DAG: define available_externally hidden i32 @staticfunc.llvm.{{.*}} !thinlto_src_module !0 !thinlto_src_file !1 {
70
70
71
71
; INSTLIMDEF-DAG: Import referenceglobals
72
- ; CHECK-DAG: define available_externally i32 @referenceglobals(i32 %i) !thinlto_src_module !0 {
72
+ ; CHECK-DAG: define available_externally i32 @referenceglobals(i32 %i) !thinlto_src_module !0 !thinlto_src_file !1 {
73
73
declare i32 @referenceglobals (...) #1
74
74
75
75
; The import of referenceglobals will expose call to globalfunc1 that
76
76
; should in turn be imported.
77
77
; INSTLIMDEF-DAG: Import globalfunc1
78
- ; CHECK-DAG: define available_externally void @globalfunc1() !thinlto_src_module !0
78
+ ; CHECK-DAG: define available_externally void @globalfunc1() !thinlto_src_module !0 !thinlto_src_file !1
79
79
80
80
; INSTLIMDEF-DAG: Import referencecommon
81
- ; CHECK-DAG: define available_externally i32 @referencecommon(i32 %i) !thinlto_src_module !0 {
81
+ ; CHECK-DAG: define available_externally i32 @referencecommon(i32 %i) !thinlto_src_module !0 !thinlto_src_file !1 {
82
82
declare i32 @referencecommon (...) #1
83
83
84
84
; INSTLIMDEF-DAG: Import setfuncptr
85
- ; CHECK-DAG: define available_externally void @setfuncptr() !thinlto_src_module !0 {
85
+ ; CHECK-DAG: define available_externally void @setfuncptr() !thinlto_src_module !0 !thinlto_src_file !1 {
86
86
declare void @setfuncptr (...) #1
87
87
88
88
; INSTLIMDEF-DAG: Import callfuncptr
89
- ; CHECK-DAG: define available_externally void @callfuncptr() !thinlto_src_module !0 {
89
+ ; CHECK-DAG: define available_externally void @callfuncptr() !thinlto_src_module !0 !thinlto_src_file !1 {
90
90
declare void @callfuncptr (...) #1
91
91
92
92
; Ensure that all uses of local variable @P which has used in setfuncptr
@@ -97,7 +97,7 @@ declare void @callfuncptr(...) #1
97
97
98
98
; Ensure that @referencelargelinkonce definition is pulled in, but later we
99
99
; also check that the linkonceodr function is not.
100
- ; CHECK-DAG: define available_externally void @referencelargelinkonce() !thinlto_src_module !0 {
100
+ ; CHECK-DAG: define available_externally void @referencelargelinkonce() !thinlto_src_module !0 !thinlto_src_file !1 {
101
101
; INSTLIM5-DAG: declare void @linkonceodr()
102
102
declare void @referencelargelinkonce (...)
103
103
@@ -110,13 +110,13 @@ declare void @weakfunc(...) #1
110
110
declare void @linkoncefunc2 (...) #1
111
111
112
112
; INSTLIMDEF-DAG: Import funcwithpersonality
113
- ; INSTLIMDEF-DAG: define available_externally hidden void @funcwithpersonality.llvm.{{.*}}() personality ptr @__gxx_personality_v0 !thinlto_src_module !0 {
113
+ ; INSTLIMDEF-DAG: define available_externally hidden void @funcwithpersonality.llvm.{{.*}}() personality ptr @__gxx_personality_v0 !thinlto_src_module !0 !thinlto_src_file !1 {
114
114
; INSTLIM5-DAG: declare hidden void @funcwithpersonality.llvm.{{.*}}()
115
115
116
116
; We can import variadic functions without a va_start, since the inliner
117
117
; can handle them.
118
118
; INSTLIMDEF-DAG: Import variadic_no_va_start
119
- ; CHECK-DAG: define available_externally void @variadic_no_va_start(...) !thinlto_src_module !0 {
119
+ ; CHECK-DAG: define available_externally void @variadic_no_va_start(...) !thinlto_src_module !0 !thinlto_src_file !1 {
120
120
declare void @variadic_no_va_start (...)
121
121
122
122
; We can import variadic functions with a va_start, since the inliner
@@ -128,7 +128,8 @@ declare void @variadic_va_start(...)
128
128
; INSTLIMDEF-DAG: 15 function-import - Number of functions imported
129
129
; INSTLIMDEF-DAG: 4 function-import - Number of global variables imported
130
130
131
- ; CHECK-DAG: !0 = !{!"{{.*}}/Inputs/funcimport.ll"}
131
+ ; CHECK-DAG: !0 = !{!"{{.*}}.bc"}
132
+ ; CHECK-DAG: !1 = !{!"{{.*}}/Inputs/funcimport.ll"}
132
133
133
134
; The actual GUID values will depend on path to test.
134
135
; GUID-DAG: GUID {{.*}} is weakalias
0 commit comments