mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Mangle fix for 'in'
This commit is contained in:
parent
4d1672fbcf
commit
f2237b4f97
1 changed files with 8 additions and 0 deletions
|
@ -541,6 +541,12 @@ void BfGNUMangler::Mangle(MangleContext& mangleContext, StringImpl& name, BfType
|
|||
Mangle(mangleContext, name, refType->mElementType);
|
||||
return;
|
||||
}
|
||||
else if ((refType->mRefKind == BfRefType::RefKind_In) && (!mangleContext.mCCompat))
|
||||
{
|
||||
name += "U2in";
|
||||
Mangle(mangleContext, name, refType->mElementType);
|
||||
return;
|
||||
}
|
||||
else if ((refType->mRefKind == BfRefType::RefKind_Out) && (!mangleContext.mCCompat))
|
||||
{
|
||||
name += "U3out";
|
||||
|
@ -1649,6 +1655,8 @@ void BfMSMangler::Mangle(MangleContext& mangleContext, StringImpl& name, BfType*
|
|||
name += "A";
|
||||
if (refType->mRefKind == BfRefType::RefKind_Mut)
|
||||
name += "mut$";
|
||||
else if (refType->mRefKind == BfRefType::RefKind_In)
|
||||
name += "in$";
|
||||
else if (refType->mRefKind == BfRefType::RefKind_Out)
|
||||
name += "out$";
|
||||
Mangle(mangleContext, name, refType->mElementType);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue