[llvm] [llvm-c] Add getters for LLVMContextRef for various types (PR #99087)
Bogdan-Alexandru Geană via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 17 09:50:54 PDT 2024
================
@@ -3434,6 +3441,13 @@ void LLVMMoveBasicBlockBefore(LLVMBasicBlockRef BB, LLVMBasicBlockRef MovePos);
*/
void LLVMMoveBasicBlockAfter(LLVMBasicBlockRef BB, LLVMBasicBlockRef MovePos);
+/**
+ * Obtain the context to which this basic block is associated.
+ *
+ * @see llvm::Module::getContext()
+ */
+LLVMContextRef LLVMGetBasicBlockContext(LLVMBasicBlockRef BB);
----------------
abgeana wrote:
Was not aware initially of this, but yeah it makes sense to not include the additional function. I have removed it in the latest version.
https://github.com/llvm/llvm-project/pull/99087
More information about the llvm-commits
mailing list