@@ -19,15 +19,15 @@ use std::ptr;
1919
2020use bitflags:: bitflags;
2121use libc:: { c_char, c_int, c_uchar, c_uint, c_ulonglong, c_void, size_t} ;
22+ use rustc_llvm:: RustString ;
2223use rustc_macros:: TryFromU32 ;
2324
24- use super :: RustString ;
25- use super :: debuginfo:: {
25+ use self :: debuginfo:: {
2626 DIArray , DIBuilder , DIDerivedType , DIDescriptor , DIEnumerator , DIFile , DIFlags ,
2727 DIGlobalVariableExpression , DILocation , DISPFlags , DIScope , DISubprogram ,
2828 DITemplateTypeParameter , DIType , DebugEmissionKind , DebugNameTableKind ,
2929} ;
30- use crate :: llvm ;
30+ use crate :: coverageinfo :: coverage_ffi ;
3131use crate :: llvm:: MetadataKindId ;
3232
3333/// In the LLVM-C API, boolean values are passed as `typedef int LLVMBool`,
@@ -76,13 +76,13 @@ impl Debug for Bool {
7676/// Being able to write `b.to_llvm_bool()` is less noisy than `llvm::Bool::from(b)`,
7777/// while being more explicit and less mistake-prone than something like `b.into()`.
7878pub ( crate ) trait ToLlvmBool : Copy {
79- fn to_llvm_bool ( self ) -> llvm :: Bool ;
79+ fn to_llvm_bool ( self ) -> Bool ;
8080}
8181
8282impl ToLlvmBool for bool {
8383 #[ inline( always) ]
84- fn to_llvm_bool ( self ) -> llvm :: Bool {
85- llvm :: Bool :: from_bool ( self )
84+ fn to_llvm_bool ( self ) -> Bool {
85+ Bool :: from_bool ( self )
8686 }
8787}
8888
@@ -883,10 +883,10 @@ unsafe extern "C" {
883883 AsmStringSize : size_t ,
884884 Constraints : * const c_uchar , // See "PTR_LEN_STR".
885885 ConstraintsSize : size_t ,
886- HasSideEffects : llvm :: Bool ,
887- IsAlignStack : llvm :: Bool ,
886+ HasSideEffects : Bool ,
887+ IsAlignStack : Bool ,
888888 Dialect : AsmDialect ,
889- CanThrow : llvm :: Bool ,
889+ CanThrow : Bool ,
890890 ) -> & ' ll Value ;
891891
892892 pub ( crate ) safe fn LLVMGetTypeKind ( Ty : & Type ) -> RawEnum < TypeKind > ;
@@ -1656,7 +1656,7 @@ unsafe extern "C" {
16561656 ParentScope : Option < & ' ll Metadata > ,
16571657 Name : * const c_uchar , // See "PTR_LEN_STR".
16581658 NameLen : size_t ,
1659- ExportSymbols : llvm :: Bool ,
1659+ ExportSymbols : Bool ,
16601660 ) -> & ' ll Metadata ;
16611661
16621662 pub ( crate ) fn LLVMDIBuilderCreateLexicalBlock < ' ll > (
@@ -1844,7 +1844,7 @@ unsafe extern "C" {
18441844 File : & ' ll Metadata ,
18451845 LineNo : c_uint ,
18461846 Ty : & ' ll Metadata ,
1847- AlwaysPreserve : llvm :: Bool , // "If true, this descriptor will survive optimizations."
1847+ AlwaysPreserve : Bool , // "If true, this descriptor will survive optimizations."
18481848 Flags : DIFlags ,
18491849 AlignInBits : u32 ,
18501850 ) -> & ' ll Metadata ;
@@ -1858,7 +1858,7 @@ unsafe extern "C" {
18581858 File : & ' ll Metadata ,
18591859 LineNo : c_uint ,
18601860 Ty : & ' ll Metadata ,
1861- AlwaysPreserve : llvm :: Bool , // "If true, this descriptor will survive optimizations."
1861+ AlwaysPreserve : Bool , // "If true, this descriptor will survive optimizations."
18621862 Flags : DIFlags ,
18631863 ) -> & ' ll Metadata ;
18641864}
@@ -2085,13 +2085,13 @@ unsafe extern "C" {
20852085 pub ( crate ) fn LLVMRustCoverageWriteFunctionMappingsToBuffer (
20862086 VirtualFileMappingIDs : * const c_uint ,
20872087 NumVirtualFileMappingIDs : size_t ,
2088- Expressions : * const crate :: coverageinfo :: ffi :: CounterExpression ,
2088+ Expressions : * const coverage_ffi :: CounterExpression ,
20892089 NumExpressions : size_t ,
2090- CodeRegions : * const crate :: coverageinfo :: ffi :: CodeRegion ,
2090+ CodeRegions : * const coverage_ffi :: CodeRegion ,
20912091 NumCodeRegions : size_t ,
2092- ExpansionRegions : * const crate :: coverageinfo :: ffi :: ExpansionRegion ,
2092+ ExpansionRegions : * const coverage_ffi :: ExpansionRegion ,
20932093 NumExpansionRegions : size_t ,
2094- BranchRegions : * const crate :: coverageinfo :: ffi :: BranchRegion ,
2094+ BranchRegions : * const coverage_ffi :: BranchRegion ,
20952095 NumBranchRegions : size_t ,
20962096 BufferOut : & RustString ,
20972097 ) ;
0 commit comments