Skip to content

Commit b53b497

Browse files
committed
LLVMBuildUtils: Add LLVM module getter
1 parent b1a141d commit b53b497

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
@@ -99,6 +99,11 @@ llvm::LLVMContext &LLVMBuildUtils::llvmCtx()
9999
return m_llvmCtx;
100100
}
101101

102+
llvm::Module *LLVMBuildUtils::module() const
103+
{
104+
return m_ctx->module();
105+
}
106+
102107
llvm::IRBuilder<> &LLVMBuildUtils::builder()
103108
{
104109
return m_builder;

src/engine/internal/llvm/llvmbuildutils.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class LLVMBuildUtils
2929
void end();
3030

3131
llvm::LLVMContext &llvmCtx();
32+
llvm::Module *module() const;
3233
llvm::IRBuilder<> &builder();
3334
LLVMFunctions &functions();
3435

0 commit comments

Comments
 (0)