[llvm-c] Remove LLVMContextSetOpaquePointers
authorArthur Eubanks <aeubanks@google.com>
Tue, 6 Dec 2022 17:20:08 +0000 (09:20 -0800)
committerArthur Eubanks <aeubanks@google.com>
Wed, 25 Jan 2023 18:28:58 +0000 (10:28 -0800)
Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D139441

llvm/docs/OpaquePointers.rst
llvm/docs/ReleaseNotes.rst
llvm/include/llvm-c/Core.h
llvm/lib/IR/Core.cpp

index 2810243..64c30f8 100644 (file)
@@ -234,8 +234,7 @@ Additionally, it will no longer be possible to call ``LLVMGetElementType()``
 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
 =====================================
index 7800a52..b3f6867 100644 (file)
@@ -118,6 +118,9 @@ Changes to the OCaml bindings
 Changes to the C API
 --------------------
 
+* ``LLVMContextSetOpaquePointers``, a temporary API to pin to legacy typed
+  pointer, has been removed.
+
 Changes to the FastISel infrastructure
 --------------------------------------
 
index 7ce91bf..21cc1f8 100644 (file)
@@ -567,13 +567,6 @@ LLVMBool LLVMContextShouldDiscardValueNames(LLVMContextRef C);
 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.
  *
  * This should be called for every call to LLVMContextCreate() or memory
index ea7ee4f..b12c483 100644 (file)
@@ -129,10 +129,6 @@ void LLVMContextSetDiscardValueNames(LLVMContextRef C, LLVMBool Discard) {
   unwrap(C)->setDiscardValueNames(Discard);
 }
 
-void LLVMContextSetOpaquePointers(LLVMContextRef C, LLVMBool OpaquePointers) {
-  unwrap(C)->setOpaquePointers(OpaquePointers);
-}
-
 void LLVMContextDispose(LLVMContextRef C) {
   delete unwrap(C);
 }