1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +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

@ -4773,19 +4773,18 @@ void BfIRBuilder::Func_DeleteBody(BfIRFunction func)
NEW_CMD_INSERTED;
}
void BfIRBuilder::Func_EraseFromParent(BfIRFunction func)
{
// Refuse to erase from parent
/*WriteCmd(BfIRCmd_Func_EraseFromParent, func);
void BfIRBuilder::Func_SafeRename(BfIRFunction func)
{
WriteCmd(BfIRCmd_Func_SafeRename, func);
// We don't actually remove it from the named map. It doesn't matter for us.
{
auto llvmFunc = llvm::dyn_cast<llvm::Function>(func.mLLVMValue);
llvmFunc->eraseFromParent();
}
// {
// auto llvmFunc = llvm::dyn_cast<llvm::Function>(func.mLLVMValue);
// llvmFunc->eraseFromParent();
// }
NEW_CMD_INSERTED;*/
NEW_CMD_INSERTED;
}
void BfIRBuilder::Func_SetLinkage(BfIRFunction func, BfIRLinkageType linkage)