@@ -6,9 +6,7 @@ use libc::{c_char, c_uint};
6
6
use super :: MetadataKindId ;
7
7
use super :: ffi:: { AttributeKind , BasicBlock , Metadata , Module , Type , Value } ;
8
8
use crate :: llvm:: Bool ;
9
- use crate :: wrap_returns_in_options;
10
9
11
- wrap_returns_in_options ! {
12
10
#[ link( name = "llvm-wrapper" , kind = "static" ) ]
13
11
unsafe extern "C" {
14
12
// Enzyme
@@ -17,7 +15,7 @@ unsafe extern "C" {
17
15
pub ( crate ) fn LLVMRustGetLastInstruction < ' a > ( BB : & BasicBlock ) -> Option < & ' a Value > ;
18
16
pub ( crate ) fn LLVMRustDIGetInstMetadata ( I : & Value ) -> Option < & Metadata > ;
19
17
pub ( crate ) fn LLVMRustEraseInstFromParent ( V : & Value ) ;
20
- |wrap pub ( crate ) fn LLVMRustGetTerminator <' a>( B : & BasicBlock ) -> & ' a Value ;
18
+ pub ( crate ) fn LLVMRustGetTerminator < ' a > ( B : & BasicBlock ) -> & ' a Value ;
21
19
pub ( crate ) fn LLVMRustVerifyFunction ( V : & Value , action : LLVMRustVerifierFailureAction ) -> Bool ;
22
20
pub ( crate ) fn LLVMRustHasAttributeAtIndex ( V : & Value , i : c_uint , Kind : AttributeKind ) -> bool ;
23
21
pub ( crate ) fn LLVMRustGetArrayNumElements ( Ty : & Type ) -> u64 ;
@@ -41,11 +39,10 @@ unsafe extern "C" {
41
39
pub ( crate ) fn LLVMDumpModule ( M : & Module ) ;
42
40
pub ( crate ) fn LLVMDumpValue ( V : & Value ) ;
43
41
pub ( crate ) fn LLVMGetFunctionCallConv ( F : & Value ) -> c_uint ;
44
- |wrap pub ( crate ) fn LLVMGetReturnType ( T : & Type ) -> & Type ;
42
+ pub ( crate ) fn LLVMGetReturnType ( T : & Type ) -> & Type ;
45
43
pub ( crate ) fn LLVMGetParams ( Fnc : & Value , parms : * mut & Value ) ;
46
44
pub ( crate ) fn LLVMGetNamedFunction ( M : & Module , Name : * const c_char ) -> Option < & Value > ;
47
45
}
48
- }
49
46
50
47
#[ repr( C ) ]
51
48
#[ derive( Copy , Clone , PartialEq ) ]
0 commit comments