@@ -701,8 +701,8 @@ extern "C" {
701
701
702
702
// Operations on all values
703
703
pub fn LLVMTypeOf ( Val : & Value ) -> & Type ;
704
- pub fn LLVMGetValueName ( Val : & Value ) -> * const c_char ;
705
- pub fn LLVMSetValueName ( Val : & Value , Name : * const c_char ) ;
704
+ pub fn LLVMGetValueName2 ( Val : & Value , Length : * mut size_t ) -> * const c_char ;
705
+ pub fn LLVMSetValueName2 ( Val : & Value , Name : * const c_char , NameLen : size_t ) ;
706
706
pub fn LLVMReplaceAllUsesWith ( OldVal : & ' a Value , NewVal : & ' a Value ) ;
707
707
pub fn LLVMSetMetadata ( Val : & ' a Value , KindID : c_uint , Node : & ' a Value ) ;
708
708
@@ -774,7 +774,8 @@ extern "C" {
774
774
pub fn LLVMIsAGlobalVariable ( GlobalVar : & Value ) -> Option < & Value > ;
775
775
pub fn LLVMAddGlobal ( M : & ' a Module , Ty : & ' a Type , Name : * const c_char ) -> & ' a Value ;
776
776
pub fn LLVMGetNamedGlobal ( M : & Module , Name : * const c_char ) -> Option < & Value > ;
777
- pub fn LLVMRustGetOrInsertGlobal ( M : & ' a Module , Name : * const c_char , T : & ' a Type ) -> & ' a Value ;
777
+ pub fn LLVMRustGetOrInsertGlobal ( M : & ' a Module , Name : * const c_char , NameLen : size_t ,
778
+ T : & ' a Type ) -> & ' a Value ;
778
779
pub fn LLVMRustInsertPrivateGlobal ( M : & ' a Module , T : & ' a Type ) -> & ' a Value ;
779
780
pub fn LLVMGetFirstGlobal ( M : & Module ) -> Option < & Value > ;
780
781
pub fn LLVMGetNextGlobal ( GlobalVar : & Value ) -> Option < & Value > ;
@@ -1811,7 +1812,7 @@ extern "C" {
1811
1812
1812
1813
pub fn LLVMRustPositionBuilderAtStart ( B : & Builder < ' a > , BB : & ' a BasicBlock ) ;
1813
1814
1814
- pub fn LLVMRustSetComdat ( M : & ' a Module , V : & ' a Value , Name : * const c_char ) ;
1815
+ pub fn LLVMRustSetComdat ( M : & ' a Module , V : & ' a Value , Name : * const c_char , NameLen : size_t ) ;
1815
1816
pub fn LLVMRustUnsetComdat ( V : & Value ) ;
1816
1817
pub fn LLVMRustSetModulePICLevel ( M : & Module ) ;
1817
1818
pub fn LLVMRustSetModulePIELevel ( M : & Module ) ;
0 commit comments