File tree Expand file tree Collapse file tree 3 files changed +12
-18
lines changed Expand file tree Collapse file tree 3 files changed +12
-18
lines changed Original file line number Diff line number Diff line change @@ -840,12 +840,13 @@ fn create_basic_type<'ll, 'tcx>(
840
840
encoding : u32 ,
841
841
) -> & ' ll DIBasicType {
842
842
unsafe {
843
- llvm:: LLVMRustDIBuilderCreateBasicType (
843
+ llvm:: LLVMDIBuilderCreateBasicType (
844
844
DIB ( cx) ,
845
- name. as_c_char_ptr ( ) ,
845
+ name. as_ptr ( ) ,
846
846
name. len ( ) ,
847
847
size. bits ( ) ,
848
848
encoding,
849
+ DIFlags :: FlagZero ,
849
850
)
850
851
}
851
852
}
Original file line number Diff line number Diff line change @@ -1904,6 +1904,15 @@ unsafe extern "C" {
1904
1904
Subscripts : * const & ' ll Metadata ,
1905
1905
NumSubscripts : c_uint ,
1906
1906
) -> & ' ll Metadata ;
1907
+
1908
+ pub ( crate ) fn LLVMDIBuilderCreateBasicType < ' ll > (
1909
+ Builder : & DIBuilder < ' ll > ,
1910
+ Name : * const c_uchar , // See "PTR_LEN_STR".
1911
+ NameLen : size_t ,
1912
+ SizeInBits : u64 ,
1913
+ Encoding : c_uint , // (`LLVMDWARFTypeEncoding`)
1914
+ Flags : DIFlags , // (default is `DIFlags::DIFlagZero`)
1915
+ ) -> & ' ll Metadata ;
1907
1916
}
1908
1917
1909
1918
#[ link( name = "llvm-wrapper" , kind = "static" ) ]
@@ -2239,14 +2248,6 @@ unsafe extern "C" {
2239
2248
TParam : & ' a DIArray ,
2240
2249
) -> & ' a DISubprogram ;
2241
2250
2242
- pub ( crate ) fn LLVMRustDIBuilderCreateBasicType < ' a > (
2243
- Builder : & DIBuilder < ' a > ,
2244
- Name : * const c_char ,
2245
- NameLen : size_t ,
2246
- SizeInBits : u64 ,
2247
- Encoding : c_uint ,
2248
- ) -> & ' a DIBasicType ;
2249
-
2250
2251
pub ( crate ) fn LLVMRustDIBuilderCreateTypedef < ' a > (
2251
2252
Builder : & DIBuilder < ' a > ,
2252
2253
Type : & ' a DIBasicType ,
Original file line number Diff line number Diff line change @@ -1064,14 +1064,6 @@ extern "C" LLVMMetadataRef LLVMRustDIBuilderCreateMethod(
1064
1064
return wrap (Sub);
1065
1065
}
1066
1066
1067
- extern " C" LLVMMetadataRef
1068
- LLVMRustDIBuilderCreateBasicType (LLVMDIBuilderRef Builder, const char *Name,
1069
- size_t NameLen, uint64_t SizeInBits,
1070
- unsigned Encoding) {
1071
- return wrap (unwrap (Builder)->createBasicType (StringRef (Name, NameLen),
1072
- SizeInBits, Encoding));
1073
- }
1074
-
1075
1067
extern " C" LLVMMetadataRef
1076
1068
LLVMRustDIBuilderCreateTypedef (LLVMDIBuilderRef Builder, LLVMMetadataRef Type,
1077
1069
const char *Name, size_t NameLen,
You can’t perform that action at this time.
0 commit comments