mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Added comptype
This commit is contained in:
parent
bb12a4ec20
commit
4890303508
27 changed files with 382 additions and 157 deletions
|
@ -1986,6 +1986,12 @@ void BeCOFFObject::Generate(BeModule* module)
|
|||
{
|
||||
auto globalVar = module->mGlobalVariables[globalVarIdx];
|
||||
|
||||
if ((globalVar->mRefCount == 0) && (globalVar->mInitializer == NULL))
|
||||
{
|
||||
globalVarSyms.push_back(NULL);
|
||||
continue;
|
||||
}
|
||||
|
||||
BeMCSymbol* sym = mSymbols.Alloc();
|
||||
sym->mType = globalVar->mType;
|
||||
sym->mName = globalVar->mName;
|
||||
|
@ -2001,6 +2007,10 @@ void BeCOFFObject::Generate(BeModule* module)
|
|||
for (int globalVarIdx = 0; globalVarIdx < (int)module->mGlobalVariables.size(); globalVarIdx++)
|
||||
{
|
||||
auto globalVar = module->mGlobalVariables[globalVarIdx];
|
||||
|
||||
if ((globalVar->mRefCount == 0) && (globalVar->mInitializer == NULL))
|
||||
continue;
|
||||
|
||||
auto sym = globalVarSyms[globalVarIdx];
|
||||
|
||||
if (globalVar->mInitializer != NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue