Skip to content

Commit e9da280

Browse files
committed
Fix test for DIFlags naming change.
1 parent 77f5540 commit e9da280

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

Diff for: tests/all/test_debug_info.rs

+13-12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use inkwell::context::Context;
22
use inkwell::debug_info::{
3-
AsDIScope, DIFlags, DISubprogram, DWARFEmissionKind, DWARFSourceLanguage, DebugInfoBuilder,
3+
AsDIScope, DIFlags, DIFlagsConstants, DISubprogram, DWARFEmissionKind, DWARFSourceLanguage,
4+
DebugInfoBuilder,
45
};
56
use inkwell::module::FlagBehavior;
67

@@ -38,14 +39,14 @@ fn test_smoke() {
3839
0_u64,
3940
0x00,
4041
#[cfg(not(feature = "llvm7-0"))]
41-
DIFlags::Public,
42+
DIFlags::PUBLIC,
4243
)
4344
.unwrap();
4445
let subroutine_type = dibuilder.create_subroutine_type(
4546
compile_unit.get_file(),
4647
Some(ditype.as_type()),
4748
&[],
48-
DIFlags::Public,
49+
DIFlags::PUBLIC,
4950
);
5051
let func_scope: DISubprogram<'_> = dibuilder.create_function(
5152
compile_unit.as_debug_info_scope(),
@@ -57,7 +58,7 @@ fn test_smoke() {
5758
true,
5859
true,
5960
0,
60-
DIFlags::Public,
61+
DIFlags::PUBLIC,
6162
false,
6263
);
6364

@@ -113,7 +114,7 @@ fn test_struct_with_placeholders() {
113114
32,
114115
0x07,
115116
#[cfg(not(feature = "llvm7-0"))]
116-
DIFlags::Public,
117+
DIFlags::PUBLIC,
117118
)
118119
.unwrap();
119120
let i64ty = dibuilder
@@ -122,7 +123,7 @@ fn test_struct_with_placeholders() {
122123
64,
123124
0x07,
124125
#[cfg(not(feature = "llvm7-0"))]
125-
DIFlags::Public,
126+
DIFlags::PUBLIC,
126127
)
127128
.unwrap();
128129
let f32ty = dibuilder
@@ -131,7 +132,7 @@ fn test_struct_with_placeholders() {
131132
32,
132133
0x04,
133134
#[cfg(not(feature = "llvm7-0"))]
134-
DIFlags::Public,
135+
DIFlags::PUBLIC,
135136
)
136137
.unwrap();
137138
let f64ty = dibuilder
@@ -140,7 +141,7 @@ fn test_struct_with_placeholders() {
140141
64,
141142
0x04,
142143
#[cfg(not(feature = "llvm7-0"))]
143-
DIFlags::Public,
144+
DIFlags::PUBLIC,
144145
)
145146
.unwrap();
146147

@@ -162,7 +163,7 @@ fn test_struct_with_placeholders() {
162163
0,
163164
192,
164165
8,
165-
DIFlags::Public,
166+
DIFlags::PUBLIC,
166167
None,
167168
member_placeholders_as_ditype.as_slice(),
168169
0,
@@ -184,7 +185,7 @@ fn test_struct_with_placeholders() {
184185
*size,
185186
8,
186187
offset,
187-
DIFlags::Public,
188+
DIFlags::PUBLIC,
188189
ty.as_type(),
189190
);
190191
unsafe {
@@ -247,7 +248,7 @@ fn test_replacing_placeholder_with_placeholder() {
247248
);
248249

249250
let i32ty = dibuilder
250-
.create_basic_type("i32", 32, 0x07, DIFlags::Public)
251+
.create_basic_type("i32", 32, 0x07, DIFlags::PUBLIC)
251252
.unwrap();
252253
let typedefty = dibuilder.create_typedef(
253254
i32ty.as_type(),
@@ -295,7 +296,7 @@ fn test_anonymous_basic_type() {
295296
0_u64,
296297
0x00,
297298
#[cfg(not(feature = "llvm7-0"))]
298-
DIFlags::Zero
299+
DIFlags::ZERO
299300
),
300301
Err("basic types must have names")
301302
);

0 commit comments

Comments
 (0)