Skip to content

Commit 493c29d

Browse files
committed
Remove unused function LLVMRustGetValueContext()
Refs rust-lang#46437
1 parent d7bbd30 commit 493c29d

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/librustc_llvm/ffi.rs

-3
Original file line numberDiff line numberDiff line change
@@ -538,9 +538,6 @@ extern "C" {
538538
/// See llvm::LLVMTypeKind::getTypeID.
539539
pub fn LLVMRustGetTypeKind(Ty: TypeRef) -> TypeKind;
540540

541-
/// See llvm::Value::getContext
542-
pub fn LLVMRustGetValueContext(V: ValueRef) -> ContextRef;
543-
544541
// Operations on integer types
545542
pub fn LLVMInt1TypeInContext(C: ContextRef) -> TypeRef;
546543
pub fn LLVMInt8TypeInContext(C: ContextRef) -> TypeRef;

src/rustllvm/RustWrapper.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -1348,10 +1348,6 @@ extern "C" bool LLVMRustConstInt128Get(LLVMValueRef CV, bool sext, uint64_t *hig
13481348
return true;
13491349
}
13501350

1351-
extern "C" LLVMContextRef LLVMRustGetValueContext(LLVMValueRef V) {
1352-
return wrap(&unwrap(V)->getContext());
1353-
}
1354-
13551351
enum class LLVMRustVisibility {
13561352
Default = 0,
13571353
Hidden = 1,

0 commit comments

Comments
 (0)