mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Improved virtual overrides in extensions
This commit is contained in:
parent
8a84647bcd
commit
e1d7939081
11 changed files with 116 additions and 11 deletions
|
@ -2959,7 +2959,7 @@ void BfIRCodeGen::HandleNextCmd()
|
|||
{
|
||||
CMD_PARAM(llvm::FunctionType*, type);
|
||||
BfIRLinkageType linkageType = (BfIRLinkageType)mStream->Read();
|
||||
CMD_PARAM(String, name);
|
||||
CMD_PARAM(String, name);
|
||||
|
||||
auto func = mLLVMModule->getFunction(name.c_str());
|
||||
if ((func == NULL) || (func->getFunctionType() != type))
|
||||
|
@ -2968,6 +2968,14 @@ void BfIRCodeGen::HandleNextCmd()
|
|||
SetResult(curId, func);
|
||||
}
|
||||
break;
|
||||
case BfIRCmd_SetFunctionName:
|
||||
{
|
||||
CMD_PARAM(llvm::Value*, func);
|
||||
CMD_PARAM(String, name);
|
||||
llvm::Function* llvmFunc = llvm::dyn_cast<llvm::Function>(func);
|
||||
llvmFunc->setName(name.c_str());
|
||||
}
|
||||
break;
|
||||
case BfIRCmd_EnsureFunctionPatchable:
|
||||
{
|
||||
int minPatchSize = 5;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue