[llvm] [llvm-c] Deprecate functions working on the global context (PR #163979)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 17 08:41:47 PDT 2025
================
@@ -581,6 +581,9 @@ LLVM_C_ABI LLVMContextRef LLVMContextCreate(void);
/**
* Obtain the global context instance.
+ *
+ * Use of the global context is deprecated. Use LLVMContextCreate() and
+ * context-aware functions instead.
*/
LLVM_C_ABI LLVMContextRef LLVMGetGlobalContext(void);
----------------
nikic wrote:
This one is not marked with LLVM_ATTRIBUTE_C_DEPRECATED, because it's used in the implementation of APIs working with the global context.
https://github.com/llvm/llvm-project/pull/163979
More information about the llvm-commits
mailing list