Skip to content

Commit

Permalink
Remove unused function LLVMRustGetValueContext()
Browse files Browse the repository at this point in the history
Refs #46437
  • Loading branch information
dotdash committed Jan 4, 2018
1 parent d7bbd30 commit 493c29d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions src/librustc_llvm/ffi.rs
Expand Up @@ -538,9 +538,6 @@ extern "C" {
/// 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;
Expand Down
4 changes: 0 additions & 4 deletions src/rustllvm/RustWrapper.cpp
Expand Up @@ -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,
Expand Down

0 comments on commit 493c29d

Please sign in to comment.