mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Fixed issues using object flags on on-debug default alloc
This commit is contained in:
parent
66216ce5d9
commit
63c6421413
8 changed files with 50 additions and 12 deletions
|
@ -1939,11 +1939,16 @@ void BfIRCodeGen::HandleNextCmd()
|
|||
}
|
||||
break;
|
||||
case BfIRCmd_CreateFunction:
|
||||
{
|
||||
{
|
||||
CMD_PARAM(llvm::FunctionType*, type);
|
||||
BfIRLinkageType linkageType = (BfIRLinkageType)mStream->Read();
|
||||
CMD_PARAM(String, name);
|
||||
SetResult(curId, llvm::Function::Create(type, LLVMMapLinkageType(linkageType), name.c_str(), mLLVMModule));
|
||||
|
||||
auto func = mLLVMModule->getFunction(name.c_str());
|
||||
if ((func == NULL) || (func->getFunctionType() != type))
|
||||
func = llvm::Function::Create(type, LLVMMapLinkageType(linkageType), name.c_str(), mLLVMModule);
|
||||
|
||||
SetResult(curId, func);
|
||||
}
|
||||
break;
|
||||
case BfIRCmd_EnsureFunctionPatchable:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue