@@ -5,17 +5,19 @@ use std::fmt::Debug;
5
5
use std:: marker:: PhantomData ;
6
6
use std:: ptr;
7
7
8
- use libc:: { c_char, c_int, c_uint, c_ulonglong, c_void, size_t} ;
8
+ use bitflags:: bitflags;
9
+ use libc:: { c_char, c_int, c_uchar, c_uint, c_ulonglong, c_void, size_t} ;
9
10
use rustc_macros:: TryFromU32 ;
10
11
use rustc_target:: spec:: SymbolVisibility ;
11
12
12
13
use super :: RustString ;
13
14
use super :: debuginfo:: {
14
15
DIArray , DIBasicType , DIBuilder , DICompositeType , DIDerivedType , DIDescriptor , DIEnumerator ,
15
- DIFile , DIFlags , DIGlobalVariableExpression , DILexicalBlock , DILocation , DINameSpace ,
16
- DISPFlags , DIScope , DISubprogram , DISubrange , DITemplateTypeParameter , DIType , DIVariable ,
17
- DebugEmissionKind , DebugNameTableKind ,
16
+ DIFile , DIFlags , DIGlobalVariableExpression , DILexicalBlock , DILocation , DISPFlags , DIScope ,
17
+ DISubprogram , DISubrange , DITemplateTypeParameter , DIType , DIVariable , DebugEmissionKind ,
18
+ DebugNameTableKind ,
18
19
} ;
20
+ use crate :: llvm;
19
21
20
22
/// In the LLVM-C API, boolean values are passed as `typedef int LLVMBool`,
21
23
/// which has a different ABI from Rust or C++ `bool`.
@@ -952,7 +954,6 @@ pub mod debuginfo {
952
954
}
953
955
}
954
956
955
- use bitflags:: bitflags;
956
957
// These values **must** match with LLVMRustAllocKindFlags
957
958
bitflags ! {
958
959
#[ repr( transparent) ]
@@ -1717,6 +1718,14 @@ unsafe extern "C" {
1717
1718
pub ( crate ) fn LLVMDisposeDIBuilder < ' ll > ( Builder : ptr:: NonNull < DIBuilder < ' ll > > ) ;
1718
1719
1719
1720
pub ( crate ) fn LLVMDIBuilderFinalize < ' ll > ( Builder : & DIBuilder < ' ll > ) ;
1721
+
1722
+ pub ( crate ) fn LLVMDIBuilderCreateNameSpace < ' ll > (
1723
+ Builder : & DIBuilder < ' ll > ,
1724
+ ParentScope : Option < & ' ll Metadata > ,
1725
+ Name : * const c_uchar ,
1726
+ NameLen : size_t ,
1727
+ ExportSymbols : llvm:: Bool ,
1728
+ ) -> & ' ll Metadata ;
1720
1729
}
1721
1730
1722
1731
#[ link( name = "llvm-wrapper" , kind = "static" ) ]
@@ -2286,14 +2295,6 @@ unsafe extern "C" {
2286
2295
Ty : & ' a DIType ,
2287
2296
) -> & ' a DITemplateTypeParameter ;
2288
2297
2289
- pub fn LLVMRustDIBuilderCreateNameSpace < ' a > (
2290
- Builder : & DIBuilder < ' a > ,
2291
- Scope : Option < & ' a DIScope > ,
2292
- Name : * const c_char ,
2293
- NameLen : size_t ,
2294
- ExportSymbols : bool ,
2295
- ) -> & ' a DINameSpace ;
2296
-
2297
2298
pub fn LLVMRustDICompositeTypeReplaceArrays < ' a > (
2298
2299
Builder : & DIBuilder < ' a > ,
2299
2300
CompositeType : & ' a DIType ,
0 commit comments