Skip to content

Commit 8d17684

Browse files
committed
rustc_codegen_llvm: remove _opaque suffix.
1 parent 1da2670 commit 8d17684

File tree

2 files changed

+49
-49
lines changed

2 files changed

+49
-49
lines changed

src/librustc_codegen_llvm/llvm/ffi.rs

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -378,48 +378,48 @@ pub enum ThreadLocalMode {
378378
extern { pub type Module; }
379379
extern { pub type Context; }
380380
extern { pub type Type; }
381-
extern { pub type Value_opaque; }
382-
pub type ValueRef = *mut Value_opaque;
381+
extern { pub type Value; }
382+
pub type ValueRef = *mut Value;
383383
extern { pub type Metadata; }
384-
extern { pub type BasicBlock_opaque; }
385-
pub type BasicBlockRef = *mut BasicBlock_opaque;
384+
extern { pub type BasicBlock; }
385+
pub type BasicBlockRef = *mut BasicBlock;
386386
extern { pub type Builder; }
387-
extern { pub type MemoryBuffer_opaque; }
388-
pub type MemoryBufferRef = *mut MemoryBuffer_opaque;
389-
extern { pub type PassManager_opaque; }
390-
pub type PassManagerRef = *mut PassManager_opaque;
391-
extern { pub type PassManagerBuilder_opaque; }
392-
pub type PassManagerBuilderRef = *mut PassManagerBuilder_opaque;
393-
extern { pub type Use_opaque; }
394-
pub type UseRef = *mut Use_opaque;
395-
extern { pub type ObjectFile_opaque; }
396-
pub type ObjectFileRef = *mut ObjectFile_opaque;
397-
extern { pub type SectionIterator_opaque; }
398-
pub type SectionIteratorRef = *mut SectionIterator_opaque;
399-
extern { pub type Pass_opaque; }
400-
pub type PassRef = *mut Pass_opaque;
387+
extern { pub type MemoryBuffer; }
388+
pub type MemoryBufferRef = *mut MemoryBuffer;
389+
extern { pub type PassManager; }
390+
pub type PassManagerRef = *mut PassManager;
391+
extern { pub type PassManagerBuilder; }
392+
pub type PassManagerBuilderRef = *mut PassManagerBuilder;
393+
extern { pub type Use; }
394+
pub type UseRef = *mut Use;
395+
extern { pub type ObjectFile; }
396+
pub type ObjectFileRef = *mut ObjectFile;
397+
extern { pub type SectionIterator; }
398+
pub type SectionIteratorRef = *mut SectionIterator;
399+
extern { pub type Pass; }
400+
pub type PassRef = *mut Pass;
401401
extern { pub type TargetMachine; }
402402
pub type TargetMachineRef = *const TargetMachine;
403-
extern { pub type Archive_opaque; }
404-
pub type ArchiveRef = *mut Archive_opaque;
405-
extern { pub type ArchiveIterator_opaque; }
406-
pub type ArchiveIteratorRef = *mut ArchiveIterator_opaque;
407-
extern { pub type ArchiveChild_opaque; }
408-
pub type ArchiveChildRef = *mut ArchiveChild_opaque;
409-
extern { pub type Twine_opaque; }
410-
pub type TwineRef = *mut Twine_opaque;
411-
extern { pub type DiagnosticInfo_opaque; }
412-
pub type DiagnosticInfoRef = *mut DiagnosticInfo_opaque;
413-
extern { pub type DebugLoc_opaque; }
414-
pub type DebugLocRef = *mut DebugLoc_opaque;
415-
extern { pub type SMDiagnostic_opaque; }
416-
pub type SMDiagnosticRef = *mut SMDiagnostic_opaque;
417-
extern { pub type RustArchiveMember_opaque; }
418-
pub type RustArchiveMemberRef = *mut RustArchiveMember_opaque;
419-
extern { pub type OperandBundleDef_opaque; }
420-
pub type OperandBundleDefRef = *mut OperandBundleDef_opaque;
421-
extern { pub type Linker_opaque; }
422-
pub type LinkerRef = *mut Linker_opaque;
403+
extern { pub type Archive; }
404+
pub type ArchiveRef = *mut Archive;
405+
extern { pub type ArchiveIterator; }
406+
pub type ArchiveIteratorRef = *mut ArchiveIterator;
407+
extern { pub type ArchiveChild; }
408+
pub type ArchiveChildRef = *mut ArchiveChild;
409+
extern { pub type Twine; }
410+
pub type TwineRef = *mut Twine;
411+
extern { pub type DiagnosticInfo; }
412+
pub type DiagnosticInfoRef = *mut DiagnosticInfo;
413+
extern { pub type DebugLoc; }
414+
pub type DebugLocRef = *mut DebugLoc;
415+
extern { pub type SMDiagnostic; }
416+
pub type SMDiagnosticRef = *mut SMDiagnostic;
417+
extern { pub type RustArchiveMember; }
418+
pub type RustArchiveMemberRef = *mut RustArchiveMember;
419+
extern { pub type OperandBundleDef; }
420+
pub type OperandBundleDefRef = *mut OperandBundleDef;
421+
extern { pub type Linker; }
422+
pub type LinkerRef = *mut Linker;
423423

424424
pub type DiagnosticHandler = unsafe extern "C" fn(DiagnosticInfoRef, *mut c_void);
425425
pub type InlineAsmDiagHandler = unsafe extern "C" fn(SMDiagnosticRef, *const c_void, c_uint);
@@ -552,7 +552,7 @@ extern "C" {
552552
pub fn LLVMRustMetadataTypeInContext(C: &Context) -> &Type;
553553

554554
// Operations on all values
555-
pub fn LLVMTypeOf(Val: &Value_opaque) -> &Type;
555+
pub fn LLVMTypeOf(Val: &Value) -> &Type;
556556
pub fn LLVMGetValueName(Val: ValueRef) -> *const c_char;
557557
pub fn LLVMSetValueName(Val: ValueRef, Name: *const c_char);
558558
pub fn LLVMReplaceAllUsesWith(OldVal: ValueRef, NewVal: ValueRef);
@@ -758,7 +758,7 @@ extern "C" {
758758
pub fn LLVMDisposeBuilder(Builder: &Builder);
759759

760760
// Metadata
761-
pub fn LLVMSetCurrentDebugLocation(Builder: &Builder, L: Option<NonNull<Value_opaque>>);
761+
pub fn LLVMSetCurrentDebugLocation(Builder: &Builder, L: Option<NonNull<Value>>);
762762
pub fn LLVMGetCurrentDebugLocation(Builder: &Builder) -> ValueRef;
763763
pub fn LLVMSetInstDebugLocation(Builder: &Builder, Inst: ValueRef);
764764

@@ -784,7 +784,7 @@ extern "C" {
784784
NumArgs: c_uint,
785785
Then: BasicBlockRef,
786786
Catch: BasicBlockRef,
787-
Bundle: Option<NonNull<OperandBundleDef_opaque>>,
787+
Bundle: Option<NonNull<OperandBundleDef>>,
788788
Name: *const c_char)
789789
-> ValueRef;
790790
pub fn LLVMBuildLandingPad(B: &'a Builder,
@@ -797,14 +797,14 @@ extern "C" {
797797
pub fn LLVMBuildUnreachable(B: &Builder) -> ValueRef;
798798

799799
pub fn LLVMRustBuildCleanupPad(B: &Builder,
800-
ParentPad: Option<NonNull<Value_opaque>>,
800+
ParentPad: Option<NonNull<Value>>,
801801
ArgCnt: c_uint,
802802
Args: *const ValueRef,
803803
Name: *const c_char)
804804
-> ValueRef;
805805
pub fn LLVMRustBuildCleanupRet(B: &Builder,
806806
CleanupPad: ValueRef,
807-
UnwindBB: Option<NonNull<BasicBlock_opaque>>)
807+
UnwindBB: Option<NonNull<BasicBlock>>)
808808
-> ValueRef;
809809
pub fn LLVMRustBuildCatchPad(B: &Builder,
810810
ParentPad: ValueRef,
@@ -814,8 +814,8 @@ extern "C" {
814814
-> ValueRef;
815815
pub fn LLVMRustBuildCatchRet(B: &Builder, Pad: ValueRef, BB: BasicBlockRef) -> ValueRef;
816816
pub fn LLVMRustBuildCatchSwitch(Builder: &Builder,
817-
ParentPad: Option<NonNull<Value_opaque>>,
818-
BB: Option<NonNull<BasicBlock_opaque>>,
817+
ParentPad: Option<NonNull<Value>>,
818+
BB: Option<NonNull<BasicBlock>>,
819819
NumHandlers: c_uint,
820820
Name: *const c_char)
821821
-> ValueRef;
@@ -1126,7 +1126,7 @@ extern "C" {
11261126
Fn: ValueRef,
11271127
Args: *const ValueRef,
11281128
NumArgs: c_uint,
1129-
Bundle: Option<NonNull<OperandBundleDef_opaque>>,
1129+
Bundle: Option<NonNull<OperandBundleDef>>,
11301130
Name: *const c_char)
11311131
-> ValueRef;
11321132
pub fn LLVMBuildSelect(B: &Builder,
@@ -1680,7 +1680,7 @@ extern "C" {
16801680
-> LLVMRustResult;
16811681
pub fn LLVMRustArchiveMemberNew(Filename: *const c_char,
16821682
Name: *const c_char,
1683-
Child: Option<NonNull<ArchiveChild_opaque>>)
1683+
Child: Option<NonNull<ArchiveChild>>)
16841684
-> RustArchiveMemberRef;
16851685
pub fn LLVMRustArchiveMemberFree(Member: RustArchiveMemberRef);
16861686

src/librustc_codegen_llvm/llvm/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ impl FromStr for ArchiveKind {
9393
}
9494

9595
#[allow(missing_copy_implementations)]
96-
pub enum RustString_opaque {}
97-
type RustStringRef = *mut RustString_opaque;
96+
extern { pub type RustString; }
97+
type RustStringRef = *mut RustString;
9898
type RustStringRepr = *mut RefCell<Vec<u8>>;
9999

100100
/// Appending to a Rust string -- used by RawRustStringOstream.

0 commit comments

Comments
 (0)