@@ -35,7 +35,7 @@ use crate::attributes;
3535use crate :: common:: Funclet ;
3636use crate :: context:: { CodegenCx , FullCx , GenericCx , SCx } ;
3737use crate :: llvm:: {
38- self , AtomicOrdering , AtomicRmwBinOp , BasicBlock , GEPNoWrapFlags , Metadata , ToLlvmBool , True ,
38+ self , AtomicOrdering , AtomicRmwBinOp , BasicBlock , GEPNoWrapFlags , Metadata , TRUE , ToLlvmBool ,
3939} ;
4040use crate :: type_:: Type ;
4141use crate :: type_of:: LayoutLlvmExt ;
@@ -493,8 +493,8 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
493493 unsafe {
494494 let add = llvm:: LLVMBuildAdd ( self . llbuilder , a, b, UNNAMED ) ;
495495 if llvm:: LLVMIsAInstruction ( add) . is_some ( ) {
496- llvm:: LLVMSetNUW ( add, True ) ;
497- llvm:: LLVMSetNSW ( add, True ) ;
496+ llvm:: LLVMSetNUW ( add, TRUE ) ;
497+ llvm:: LLVMSetNSW ( add, TRUE ) ;
498498 }
499499 add
500500 }
@@ -503,8 +503,8 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
503503 unsafe {
504504 let sub = llvm:: LLVMBuildSub ( self . llbuilder , a, b, UNNAMED ) ;
505505 if llvm:: LLVMIsAInstruction ( sub) . is_some ( ) {
506- llvm:: LLVMSetNUW ( sub, True ) ;
507- llvm:: LLVMSetNSW ( sub, True ) ;
506+ llvm:: LLVMSetNUW ( sub, TRUE ) ;
507+ llvm:: LLVMSetNSW ( sub, TRUE ) ;
508508 }
509509 sub
510510 }
@@ -513,8 +513,8 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
513513 unsafe {
514514 let mul = llvm:: LLVMBuildMul ( self . llbuilder , a, b, UNNAMED ) ;
515515 if llvm:: LLVMIsAInstruction ( mul) . is_some ( ) {
516- llvm:: LLVMSetNUW ( mul, True ) ;
517- llvm:: LLVMSetNSW ( mul, True ) ;
516+ llvm:: LLVMSetNUW ( mul, TRUE ) ;
517+ llvm:: LLVMSetNSW ( mul, TRUE ) ;
518518 }
519519 mul
520520 }
@@ -528,7 +528,7 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
528528 // an instruction, so we need to check before setting the flag.
529529 // (See also `LLVMBuildNUWNeg` which also needs a check.)
530530 if llvm:: LLVMIsAInstruction ( or) . is_some ( ) {
531- llvm:: LLVMSetIsDisjoint ( or, True ) ;
531+ llvm:: LLVMSetIsDisjoint ( or, TRUE ) ;
532532 }
533533 or
534534 }
@@ -629,7 +629,7 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
629629 fn volatile_load ( & mut self , ty : & ' ll Type , ptr : & ' ll Value ) -> & ' ll Value {
630630 unsafe {
631631 let load = llvm:: LLVMBuildLoad2 ( self . llbuilder , ty, ptr, UNNAMED ) ;
632- llvm:: LLVMSetVolatile ( load, llvm:: True ) ;
632+ llvm:: LLVMSetVolatile ( load, llvm:: TRUE ) ;
633633 load
634634 }
635635 }
@@ -838,7 +838,7 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
838838 if flags. contains ( MemFlags :: UNALIGNED ) { 1 } else { align. bytes ( ) as c_uint } ;
839839 llvm:: LLVMSetAlignment ( store, align) ;
840840 if flags. contains ( MemFlags :: VOLATILE ) {
841- llvm:: LLVMSetVolatile ( store, llvm:: True ) ;
841+ llvm:: LLVMSetVolatile ( store, llvm:: TRUE ) ;
842842 }
843843 if flags. contains ( MemFlags :: NONTEMPORAL ) {
844844 // Make sure that the current target architectures supports "sane" non-temporal
@@ -956,7 +956,7 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
956956 let trunc = self . trunc ( val, dest_ty) ;
957957 unsafe {
958958 if llvm:: LLVMIsAInstruction ( trunc) . is_some ( ) {
959- llvm:: LLVMSetNUW ( trunc, True ) ;
959+ llvm:: LLVMSetNUW ( trunc, TRUE ) ;
960960 }
961961 }
962962 trunc
@@ -968,7 +968,7 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
968968 let trunc = self . trunc ( val, dest_ty) ;
969969 unsafe {
970970 if llvm:: LLVMIsAInstruction ( trunc) . is_some ( ) {
971- llvm:: LLVMSetNSW ( trunc, True ) ;
971+ llvm:: LLVMSetNSW ( trunc, TRUE ) ;
972972 }
973973 }
974974 trunc
@@ -1223,7 +1223,7 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
12231223 let ty = self . type_struct ( & [ self . type_ptr ( ) , self . type_i32 ( ) ] , false ) ;
12241224 let landing_pad = self . landing_pad ( ty, pers_fn, 0 ) ;
12251225 unsafe {
1226- llvm:: LLVMSetCleanup ( landing_pad, llvm:: True ) ;
1226+ llvm:: LLVMSetCleanup ( landing_pad, llvm:: TRUE ) ;
12271227 }
12281228 ( self . extract_value ( landing_pad, 0 ) , self . extract_value ( landing_pad, 1 ) )
12291229 }
@@ -1319,7 +1319,7 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
13191319 src,
13201320 AtomicOrdering :: from_generic ( order) ,
13211321 AtomicOrdering :: from_generic ( failure_order) ,
1322- llvm:: False , // SingleThreaded
1322+ llvm:: FALSE , // SingleThreaded
13231323 ) ;
13241324 llvm:: LLVMSetWeak ( value, weak. to_llvm_bool ( ) ) ;
13251325 let val = self . extract_value ( value, 0 ) ;
@@ -1346,7 +1346,7 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
13461346 dst,
13471347 src,
13481348 AtomicOrdering :: from_generic ( order) ,
1349- llvm:: False , // SingleThreaded
1349+ llvm:: FALSE , // SingleThreaded
13501350 )
13511351 } ;
13521352 if ret_ptr && self . val_ty ( res) != self . type_ptr ( ) {
0 commit comments