mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Fixed generic method and methodref binding issues
This commit is contained in:
parent
3993f657e1
commit
6c049988b3
3 changed files with 43 additions and 42 deletions
|
@ -1777,7 +1777,7 @@ void BeModule::Hash(BeHashContext& hashCtx)
|
|||
{
|
||||
return (lhs->mName < rhs->mName);
|
||||
});
|
||||
|
||||
|
||||
for (auto& beGlobalVar : mGlobalVariables)
|
||||
{
|
||||
if (beGlobalVar->mInitializer != NULL)
|
||||
|
@ -1874,15 +1874,16 @@ String BeModule::ToString(BeFunction* wantFunc)
|
|||
}
|
||||
str += "\n";
|
||||
|
||||
str += "; Global variables\n";
|
||||
for (auto gv : mGlobalVariables)
|
||||
str += "; Global variables\n";
|
||||
for (int gvIdx = 0; gvIdx < (int)mGlobalVariables.size(); gvIdx++)
|
||||
{
|
||||
auto gv = mGlobalVariables[gvIdx];
|
||||
str += gv->mName;
|
||||
str += " =";
|
||||
if (gv->mInitializer == NULL)
|
||||
str += " external";
|
||||
if (gv->mLinkageType == BfIRLinkageType_Internal)
|
||||
str += " internal";
|
||||
str += " internal";
|
||||
if (gv->mIsConstant)
|
||||
str += " constant";
|
||||
if (gv->mIsTLS)
|
||||
|
@ -1902,7 +1903,7 @@ String BeModule::ToString(BeFunction* wantFunc)
|
|||
str += " align ";
|
||||
str += StrFormat("%d", gv->mAlign);
|
||||
}
|
||||
str += "\n";
|
||||
str += "\n";
|
||||
}
|
||||
str += "\n";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue