[llvm] 1270879 - [llvm-c] Remove LLVMContextSetOpaquePointers

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 25 10:30:04 PST 2023


Author: Arthur Eubanks
Date: 2023-01-25T10:28:58-08:00
New Revision: 1270879376025457e266572c7cccc51eb5de9276

URL: https://github.com/llvm/llvm-project/commit/1270879376025457e266572c7cccc51eb5de9276
DIFF: https://github.com/llvm/llvm-project/commit/1270879376025457e266572c7cccc51eb5de9276.diff

LOG: [llvm-c] Remove LLVMContextSetOpaquePointers

Reviewed By: nikic

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

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/docs/OpaquePointers.rst b/llvm/docs/OpaquePointers.rst
index 28102439a2b9..64c30f862464 100644
--- a/llvm/docs/OpaquePointers.rst
+++ b/llvm/docs/OpaquePointers.rst
@@ -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
 =====================================

diff  --git a/llvm/docs/ReleaseNotes.rst b/llvm/docs/ReleaseNotes.rst
index 7800a52d961e..b3f6867ca280 100644
--- a/llvm/docs/ReleaseNotes.rst
+++ b/llvm/docs/ReleaseNotes.rst
@@ -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
 --------------------------------------
 

diff  --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h
index 7ce91bf25193..21cc1f819a36 100644
--- a/llvm/include/llvm-c/Core.h
+++ b/llvm/include/llvm-c/Core.h
@@ -566,13 +566,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.
  *

diff  --git a/llvm/lib/IR/Core.cpp b/llvm/lib/IR/Core.cpp
index ea7ee4f97f69..b12c483cb949 100644
--- a/llvm/lib/IR/Core.cpp
+++ b/llvm/lib/IR/Core.cpp
@@ -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);
 }


        


More information about the llvm-commits mailing list