diff --git a/llvm/docs/OpaquePointers.rst b/llvm/docs/OpaquePointers.rst --- a/llvm/docs/OpaquePointers.rst +++ b/llvm/docs/OpaquePointers.rst @@ -234,8 +234,7 @@ on a pointer type. It is possible to control whether opaque pointers are used (if you want to -override the default) using ``LLVMContext::setOpaquePointers`` or -``LLVMContextSetOpaquePointers()``. +override the default) using ``LLVMContext::setOpaquePointers``. Temporarily disabling opaque pointers ===================================== diff --git a/llvm/docs/ReleaseNotes.rst b/llvm/docs/ReleaseNotes.rst --- a/llvm/docs/ReleaseNotes.rst +++ b/llvm/docs/ReleaseNotes.rst @@ -118,6 +118,9 @@ Changes to the C API -------------------- +* ``LLVMContextSetOpaquePointers``, a temporary API to pin to legacy typed + pointer, has been removed. + Changes to the FastISel infrastructure -------------------------------------- diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h --- a/llvm/include/llvm-c/Core.h +++ b/llvm/include/llvm-c/Core.h @@ -566,13 +566,6 @@ */ void LLVMContextSetDiscardValueNames(LLVMContextRef C, LLVMBool Discard); -/** - * Set whether the given context is in opaque pointer mode. - * - * @see LLVMContext::setOpaquePointers() - */ -void LLVMContextSetOpaquePointers(LLVMContextRef C, LLVMBool OpaquePointers); - /** * Destroy a context instance. * diff --git a/llvm/lib/IR/Core.cpp b/llvm/lib/IR/Core.cpp --- a/llvm/lib/IR/Core.cpp +++ b/llvm/lib/IR/Core.cpp @@ -129,10 +129,6 @@ unwrap(C)->setDiscardValueNames(Discard); } -void LLVMContextSetOpaquePointers(LLVMContextRef C, LLVMBool OpaquePointers) { - unwrap(C)->setOpaquePointers(OpaquePointers); -} - void LLVMContextDispose(LLVMContextRef C) { delete unwrap(C); }