Skip to content

Commit 4fb695e

Browse files
committed
LLVMBuildUtils: Add compiler context getter
1 parent b53b497 commit 4fb695e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/engine/internal/llvm/llvmbuildutils.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ void LLVMBuildUtils::end()
9494
freeScopeHeap();
9595
}
9696

97+
LLVMCompilerContext *LLVMBuildUtils::compilerCtx() const
98+
{
99+
return m_ctx;
100+
}
101+
97102
llvm::LLVMContext &LLVMBuildUtils::llvmCtx()
98103
{
99104
return m_llvmCtx;

src/engine/internal/llvm/llvmbuildutils.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class LLVMBuildUtils
2828
void init(llvm::Function *function, BlockPrototype *procedurePrototype, bool warp);
2929
void end();
3030

31+
LLVMCompilerContext *compilerCtx() const;
3132
llvm::LLVMContext &llvmCtx();
3233
llvm::Module *module() const;
3334
llvm::IRBuilder<> &builder();

0 commit comments

Comments
 (0)