]> git.lizzy.rs Git - rust.git/commitdiff
Remove unused function LLVMRustGetValueContext()
authorBjörn Steinbrink <bsteinbr@gmail.com>
Fri, 8 Dec 2017 10:07:08 +0000 (11:07 +0100)
committerBjörn Steinbrink <bsteinbr@gmail.com>
Thu, 4 Jan 2018 07:57:14 +0000 (08:57 +0100)
Refs #46437

src/librustc_llvm/ffi.rs
src/rustllvm/RustWrapper.cpp

index 746c5a7cb247e7913488584e6355a8afe5bc8a15..4e65195626507fb1177f311c5102416d34545648 100644 (file)
@@ -538,9 +538,6 @@ pub enum ModuleBuffer {}
     /// See llvm::LLVMTypeKind::getTypeID.
     pub fn LLVMRustGetTypeKind(Ty: TypeRef) -> TypeKind;
 
-    /// See llvm::Value::getContext
-    pub fn LLVMRustGetValueContext(V: ValueRef) -> ContextRef;
-
     // Operations on integer types
     pub fn LLVMInt1TypeInContext(C: ContextRef) -> TypeRef;
     pub fn LLVMInt8TypeInContext(C: ContextRef) -> TypeRef;
index d5095f1f94c3e355a8a3ab5fa949217d99ade845..d4480002d4000c422754a8f56f604f4ca10c11a9 100644 (file)
@@ -1348,10 +1348,6 @@ extern "C" bool LLVMRustConstInt128Get(LLVMValueRef CV, bool sext, uint64_t *hig
     return true;
 }
 
-extern "C" LLVMContextRef LLVMRustGetValueContext(LLVMValueRef V) {
-  return wrap(&unwrap(V)->getContext());
-}
-
 enum class LLVMRustVisibility {
   Default = 0,
   Hidden = 1,