@@ -5,9 +5,7 @@ use libc::{c_char, c_uint};
55use super :: MetadataKindId ;
66use super :: ffi:: { AttributeKind , BasicBlock , Metadata , Module , Type , Value } ;
77use crate :: llvm:: { Bool , Builder } ;
8- use crate :: wrap_returns_in_options;
98
10- wrap_returns_in_options ! {
119#[ link( name = "llvm-wrapper" , kind = "static" ) ]
1210unsafe extern "C" {
1311 // Enzyme
@@ -16,7 +14,7 @@ unsafe extern "C" {
1614 pub ( crate ) fn LLVMRustGetLastInstruction < ' a > ( BB : & BasicBlock ) -> Option < & ' a Value > ;
1715 pub ( crate ) fn LLVMRustDIGetInstMetadata ( I : & Value ) -> Option < & Metadata > ;
1816 pub ( crate ) fn LLVMRustEraseInstFromParent ( V : & Value ) ;
19- |wrap pub ( crate ) fn LLVMRustGetTerminator <' a>( B : & BasicBlock ) -> & ' a Value ;
17+ pub ( crate ) fn LLVMRustGetTerminator < ' a > ( B : & BasicBlock ) -> & ' a Value ;
2018 pub ( crate ) fn LLVMRustVerifyFunction ( V : & Value , action : LLVMRustVerifierFailureAction ) -> Bool ;
2119 pub ( crate ) fn LLVMRustHasAttributeAtIndex ( V : & Value , i : c_uint , Kind : AttributeKind ) -> bool ;
2220 pub ( crate ) fn LLVMRustGetArrayNumElements ( Ty : & Type ) -> u64 ;
@@ -48,11 +46,10 @@ unsafe extern "C" {
4846 pub ( crate ) fn LLVMDumpModule ( M : & Module ) ;
4947 pub ( crate ) fn LLVMDumpValue ( V : & Value ) ;
5048 pub ( crate ) fn LLVMGetFunctionCallConv ( F : & Value ) -> c_uint ;
51- |wrap pub ( crate ) fn LLVMGetReturnType ( T : & Type ) -> & Type ;
49+ pub ( crate ) fn LLVMGetReturnType ( T : & Type ) -> & Type ;
5250 pub ( crate ) fn LLVMGetParams ( Fnc : & Value , params : * mut & Value ) ;
5351 pub ( crate ) fn LLVMGetNamedFunction ( M : & Module , Name : * const c_char ) -> Option < & Value > ;
5452}
55- }
5653
5754#[ repr( C ) ]
5855#[ derive( Copy , Clone , PartialEq ) ]
0 commit comments