@@ -161,6 +161,7 @@ pub enum DLLStorageClass {
161
161
#[ derive( Copy , Clone , Debug ) ]
162
162
pub enum AttributeKind {
163
163
AlwaysInline = 0 ,
164
+ #[ allow( dead_code) ]
164
165
ByVal = 1 ,
165
166
Cold = 2 ,
166
167
InlineHint = 3 ,
@@ -176,15 +177,19 @@ pub enum AttributeKind {
176
177
OptimizeForSize = 13 ,
177
178
ReadOnly = 14 ,
178
179
SExt = 15 ,
180
+ #[ allow( dead_code) ]
179
181
StructRet = 16 ,
182
+ #[ allow( dead_code) ]
180
183
UWTable = 17 ,
181
184
ZExt = 18 ,
182
185
InReg = 19 ,
183
186
SanitizeThread = 20 ,
184
187
SanitizeAddress = 21 ,
185
188
SanitizeMemory = 22 ,
186
189
NonLazyBind = 23 ,
190
+ #[ allow( dead_code) ]
187
191
OptimizeNone = 24 ,
192
+ #[ allow( dead_code) ]
188
193
ReadNone = 26 ,
189
194
SanitizeHWAddress = 28 ,
190
195
WillReturn = 29 ,
@@ -195,6 +200,7 @@ pub enum AttributeKind {
195
200
SanitizeMemTag = 34 ,
196
201
NoCfCheck = 35 ,
197
202
ShadowCallStack = 36 ,
203
+ #[ allow( dead_code) ]
198
204
AllocSize = 37 ,
199
205
AllocatedPointer = 38 ,
200
206
AllocAlign = 39 ,
@@ -289,6 +295,7 @@ impl RealPredicate {
289
295
/// LLVMTypeKind
290
296
#[ derive( Copy , Clone , PartialEq , Debug ) ]
291
297
#[ repr( C ) ]
298
+ #[ allow( dead_code) ]
292
299
pub enum TypeKind {
293
300
Void = 0 ,
294
301
Half = 1 ,
@@ -598,6 +605,7 @@ pub enum ThreadLocalMode {
598
605
/// LLVMRustTailCallKind
599
606
#[ derive( Copy , Clone ) ]
600
607
#[ repr( C ) ]
608
+ #[ allow( dead_code) ]
601
609
pub enum TailCallKind {
602
610
None ,
603
611
Tail ,
@@ -662,9 +670,6 @@ extern "C" {
662
670
pub struct Builder < ' a > ( InvariantOpaque < ' a > ) ;
663
671
#[ repr( C ) ]
664
672
pub struct PassManager < ' a > ( InvariantOpaque < ' a > ) ;
665
- extern "C" {
666
- pub type Pass ;
667
- }
668
673
extern "C" {
669
674
pub type TargetMachine ;
670
675
}
@@ -696,7 +701,6 @@ extern "C" {
696
701
}
697
702
698
703
pub type DiagnosticHandlerTy = unsafe extern "C" fn ( & DiagnosticInfo , * mut c_void ) ;
699
- pub type InlineAsmDiagHandlerTy = unsafe extern "C" fn ( & SMDiagnostic , * const c_void , c_uint ) ;
700
704
701
705
pub mod debuginfo {
702
706
use super :: { InvariantOpaque , Metadata } ;
@@ -804,6 +808,7 @@ pub mod debuginfo {
804
808
#[ repr( C ) ]
805
809
pub enum DebugNameTableKind {
806
810
Default ,
811
+ #[ allow( dead_code) ]
807
812
Gnu ,
808
813
None ,
809
814
}
@@ -1563,6 +1568,8 @@ extern "C" {
1563
1568
Name : * const c_char ,
1564
1569
NameLen : size_t ,
1565
1570
) -> Option < & Value > ;
1571
+
1572
+ #[ allow( dead_code) ]
1566
1573
pub fn LLVMRustSetTailCallKind ( CallInst : & Value , TKC : TailCallKind ) ;
1567
1574
1568
1575
// Operations on attributes
0 commit comments