@@ -26,7 +26,7 @@ use libc::{c_ulonglong, c_void};
26
26
27
27
use std:: ptr:: NonNull ;
28
28
29
- use super :: RustStringRef ;
29
+ use super :: RustString ;
30
30
31
31
pub type Bool = c_uint ;
32
32
@@ -1402,8 +1402,8 @@ extern "C" {
1402
1402
pub fn LLVMRustDIBuilderCreateOpDeref ( ) -> i64 ;
1403
1403
pub fn LLVMRustDIBuilderCreateOpPlusUconst ( ) -> i64 ;
1404
1404
1405
- pub fn LLVMRustWriteTypeToString ( Type : & Type , s : RustStringRef ) ;
1406
- pub fn LLVMRustWriteValueToString ( value_ref : & Value , s : RustStringRef ) ;
1405
+ pub fn LLVMRustWriteTypeToString ( Type : & Type , s : & RustString ) ;
1406
+ pub fn LLVMRustWriteValueToString ( value_ref : & Value , s : & RustString ) ;
1407
1407
1408
1408
pub fn LLVMIsAConstantInt ( value_ref : & Value ) -> Option < & Value > ;
1409
1409
pub fn LLVMIsAConstantFP ( value_ref : & Value ) -> Option < & Value > ;
@@ -1478,32 +1478,32 @@ extern "C" {
1478
1478
1479
1479
pub fn LLVMRustGetSectionName ( SI : SectionIteratorRef , data : * mut * const c_char ) -> size_t ;
1480
1480
1481
- pub fn LLVMRustWriteTwineToString ( T : & Twine , s : RustStringRef ) ;
1481
+ pub fn LLVMRustWriteTwineToString ( T : & Twine , s : & RustString ) ;
1482
1482
1483
1483
pub fn LLVMContextSetDiagnosticHandler ( C : & Context ,
1484
1484
Handler : DiagnosticHandler ,
1485
1485
DiagnosticContext : * mut c_void ) ;
1486
1486
1487
1487
pub fn LLVMRustUnpackOptimizationDiagnostic ( DI : & ' a DiagnosticInfo ,
1488
- pass_name_out : RustStringRef ,
1489
- function_out : * mut Option < & ' a Value > ,
1490
- loc_line_out : * mut c_uint ,
1491
- loc_column_out : * mut c_uint ,
1492
- loc_filename_out : RustStringRef ,
1493
- message_out : RustStringRef ) ;
1488
+ pass_name_out : & RustString ,
1489
+ function_out : & mut Option < & ' a Value > ,
1490
+ loc_line_out : & mut c_uint ,
1491
+ loc_column_out : & mut c_uint ,
1492
+ loc_filename_out : & RustString ,
1493
+ message_out : & RustString ) ;
1494
1494
pub fn LLVMRustUnpackInlineAsmDiagnostic ( DI : & ' a DiagnosticInfo ,
1495
1495
cookie_out : * mut c_uint ,
1496
1496
message_out : * mut Option < & ' a Twine > ,
1497
1497
instruction_out : * mut Option < & ' a Value > ) ;
1498
1498
1499
- pub fn LLVMRustWriteDiagnosticInfoToString ( DI : & DiagnosticInfo , s : RustStringRef ) ;
1499
+ pub fn LLVMRustWriteDiagnosticInfoToString ( DI : & DiagnosticInfo , s : & RustString ) ;
1500
1500
pub fn LLVMRustGetDiagInfoKind ( DI : & DiagnosticInfo ) -> DiagnosticKind ;
1501
1501
1502
1502
pub fn LLVMRustSetInlineAsmDiagnosticHandler ( C : & Context ,
1503
1503
H : InlineAsmDiagHandler ,
1504
1504
CX : * mut c_void ) ;
1505
1505
1506
- pub fn LLVMRustWriteSMDiagnosticToString ( d : & SMDiagnostic , s : RustStringRef ) ;
1506
+ pub fn LLVMRustWriteSMDiagnosticToString ( d : & SMDiagnostic , s : & RustString ) ;
1507
1507
1508
1508
pub fn LLVMRustWriteArchive ( Dst : * const c_char ,
1509
1509
NumMembers : size_t ,
0 commit comments