]> git.lizzy.rs Git - rust.git/commitdiff
rustc_codegen_llvm: remove unused UseRef type.
authorIrina Popa <irinagpopa@gmail.com>
Tue, 10 Jul 2018 11:37:52 +0000 (14:37 +0300)
committerIrina Popa <irinagpopa@gmail.com>
Mon, 30 Jul 2018 16:49:22 +0000 (19:49 +0300)
src/librustc_codegen_llvm/llvm/ffi.rs

index 1b6014b495246fc2f3ed502a11396ff835eb949e..d6b6d076807000d0f76db3bfc2ea31c920916bae 100644 (file)
@@ -388,8 +388,6 @@ pub enum ThreadLocalMode {
 pub type PassManagerRef = *mut PassManager;
 extern { pub type PassManagerBuilder; }
 pub type PassManagerBuilderRef = *mut PassManagerBuilder;
-extern { pub type Use; }
-pub type UseRef = *mut Use;
 extern { pub type ObjectFile; }
 pub type ObjectFileRef = *mut ObjectFile;
 extern { pub type SectionIterator; }
@@ -556,11 +554,6 @@ pub fn LLVMStructTypeInContext(C: &'a Context,
     pub fn LLVMReplaceAllUsesWith(OldVal: &'a Value, NewVal: &'a Value);
     pub fn LLVMSetMetadata(Val: &'a Value, KindID: c_uint, Node: &'a Value);
 
-    // Operations on Uses
-    pub fn LLVMGetFirstUse(Val: &Value) -> UseRef;
-    pub fn LLVMGetNextUse(U: UseRef) -> UseRef;
-    pub fn LLVMGetUser(U: UseRef) -> &'a Value;
-
     // Operations on Users
     pub fn LLVMGetOperand(Val: &Value, Index: c_uint) -> &Value;