Skip to content

Commit 07f89b5

Browse files
committed
add LLVMGetValueContext and LLVMGetBuilderContext
See also llvm/llvm-project#99087
1 parent 77d7cf1 commit 07f89b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,6 +1323,7 @@ extern "C" {
13231323

13241324
// Core->Values again; these don't appear in Doxygen because they're macro-generated.
13251325
extern "C" {
1326+
pub fn LLVMGetValueContext(Val: LLVMValueRef) -> LLVMContextRef;
13261327
pub fn LLVMIsAArgument(Val: LLVMValueRef) -> LLVMValueRef;
13271328
pub fn LLVMIsABasicBlock(Val: LLVMValueRef) -> LLVMValueRef;
13281329
pub fn LLVMIsAInlineAsm(Val: LLVMValueRef) -> LLVMValueRef;
@@ -1425,6 +1426,7 @@ extern "C" {
14251426
extern "C" {
14261427
pub fn LLVMCreateBuilderInContext(C: LLVMContextRef) -> LLVMBuilderRef;
14271428
pub fn LLVMCreateBuilder() -> LLVMBuilderRef;
1429+
pub fn LLVMGetBuilderContext(Builder: LLVMBuilderRef) -> LLVMContextRef;
14281430
/// Set the builder position before Instr but after any attached debug records,
14291431
/// or if Instr is null set the position to the end of Block.
14301432
pub fn LLVMPositionBuilder(

0 commit comments

Comments
 (0)