Merge adjacent unsafe extern "C"
blocks.
This commit is contained in:
parent
c5af8b2722
commit
5fd16dffdc
1 changed files with 2 additions and 26 deletions
|
@ -560,13 +560,11 @@ pub enum ArchiveKind {
|
||||||
K_AIXBIG,
|
K_AIXBIG,
|
||||||
}
|
}
|
||||||
|
|
||||||
// LLVMRustThinLTOData
|
|
||||||
unsafe extern "C" {
|
unsafe extern "C" {
|
||||||
|
// LLVMRustThinLTOData
|
||||||
pub type ThinLTOData;
|
pub type ThinLTOData;
|
||||||
}
|
|
||||||
|
|
||||||
// LLVMRustThinLTOBuffer
|
// LLVMRustThinLTOBuffer
|
||||||
unsafe extern "C" {
|
|
||||||
pub type ThinLTOBuffer;
|
pub type ThinLTOBuffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -630,26 +628,12 @@ struct InvariantOpaque<'a> {
|
||||||
// Opaque pointer types
|
// Opaque pointer types
|
||||||
unsafe extern "C" {
|
unsafe extern "C" {
|
||||||
pub type Module;
|
pub type Module;
|
||||||
}
|
|
||||||
unsafe extern "C" {
|
|
||||||
pub type Context;
|
pub type Context;
|
||||||
}
|
|
||||||
unsafe extern "C" {
|
|
||||||
pub type Type;
|
pub type Type;
|
||||||
}
|
|
||||||
unsafe extern "C" {
|
|
||||||
pub type Value;
|
pub type Value;
|
||||||
}
|
|
||||||
unsafe extern "C" {
|
|
||||||
pub type ConstantInt;
|
pub type ConstantInt;
|
||||||
}
|
|
||||||
unsafe extern "C" {
|
|
||||||
pub type Attribute;
|
pub type Attribute;
|
||||||
}
|
|
||||||
unsafe extern "C" {
|
|
||||||
pub type Metadata;
|
pub type Metadata;
|
||||||
}
|
|
||||||
unsafe extern "C" {
|
|
||||||
pub type BasicBlock;
|
pub type BasicBlock;
|
||||||
}
|
}
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
|
@ -658,11 +642,7 @@ pub struct Builder<'a>(InvariantOpaque<'a>);
|
||||||
pub struct PassManager<'a>(InvariantOpaque<'a>);
|
pub struct PassManager<'a>(InvariantOpaque<'a>);
|
||||||
unsafe extern "C" {
|
unsafe extern "C" {
|
||||||
pub type Pass;
|
pub type Pass;
|
||||||
}
|
|
||||||
unsafe extern "C" {
|
|
||||||
pub type TargetMachine;
|
pub type TargetMachine;
|
||||||
}
|
|
||||||
unsafe extern "C" {
|
|
||||||
pub type Archive;
|
pub type Archive;
|
||||||
}
|
}
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
|
@ -671,11 +651,7 @@ pub struct ArchiveIterator<'a>(InvariantOpaque<'a>);
|
||||||
pub struct ArchiveChild<'a>(InvariantOpaque<'a>);
|
pub struct ArchiveChild<'a>(InvariantOpaque<'a>);
|
||||||
unsafe extern "C" {
|
unsafe extern "C" {
|
||||||
pub type Twine;
|
pub type Twine;
|
||||||
}
|
|
||||||
unsafe extern "C" {
|
|
||||||
pub type DiagnosticInfo;
|
pub type DiagnosticInfo;
|
||||||
}
|
|
||||||
unsafe extern "C" {
|
|
||||||
pub type SMDiagnostic;
|
pub type SMDiagnostic;
|
||||||
}
|
}
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue