Skip to content

Commit 60cef4c

Browse files
committed
Track used procedures
1 parent 4fe47e9 commit 60cef4c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/engine/internal/llvm/instructions/procedures.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ LLVMInstruction *Procedures::buildCallProcedure(LLVMInstruction *ins)
4444
llvm::FunctionType *type = m_utils.scriptFunctionType(ins->procedurePrototype);
4545
std::vector<llvm::Value *> args;
4646

47+
m_utils.compilerCtx()->addUsedProcedure(name);
48+
4749
llvm::FunctionType *funcType = m_utils.scriptFunctionType(nullptr);
4850
int passArgCount = funcType->getNumParams();
4951

0 commit comments

Comments
 (0)