mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Added support for generic tuples
This commit is contained in:
parent
a186421ba8
commit
6fe9c78ada
13 changed files with 403 additions and 158 deletions
|
@ -280,7 +280,7 @@ void BfGNUMangler::MangleTypeInst(MangleContext& mangleContext, StringImpl& name
|
|||
|
||||
if (typeInst->IsTuple())
|
||||
{
|
||||
auto tupleType = (BfTupleType*)typeInst;
|
||||
auto tupleType = (BfTypeInstance*)typeInst;
|
||||
name += "N7__TUPLEI";
|
||||
mangleContext.mSubstituteList.push_back(NameSubstitute(BfGNUMangler::NameSubstitute::Kind_None, NULL)); // Insert entry for '__TUPLE'
|
||||
for (int fieldIdx = 0; fieldIdx < (int)tupleType->mFieldInstances.size(); fieldIdx++)
|
||||
|
@ -1131,7 +1131,7 @@ bool BfMSMangler::FindOrCreateNameSub(MangleContext& mangleContext, StringImpl&
|
|||
|
||||
if (newNameSub.mTypeInst->IsTuple())
|
||||
{
|
||||
auto tupleType = (BfTupleType*)newNameSub.mType;
|
||||
auto tupleType = (BfTypeInstance*)newNameSub.mType;
|
||||
name += "?$__TUPLE";
|
||||
SizedArray<BfType*, 8> typeVec;
|
||||
for (auto& fieldInst : tupleType->mFieldInstances)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue