1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Fixed enum with extension with ToString override

This commit is contained in:
Brian Fiete 2020-10-26 11:38:44 -07:00
parent 38d2eff3f6
commit f09a9b41f1
6 changed files with 25 additions and 14 deletions

View file

@ -3520,6 +3520,12 @@ void BfIRCodeGen::HandleNextCmd()
((llvm::Function*)func)->deleteBody();
}
break;
case BfIRCmd_Func_SafeRename:
{
CMD_PARAM(llvm::Function*, func);
func->setName((Beefy::String(func->getName()) + StrFormat("__RENAME%d", curId)).c_str());
}
break;
case BfIRCmd_Func_SetLinkage:
{
CMD_PARAM(llvm::Function*, func);