mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed TLS issues
This commit is contained in:
parent
89aeb7924c
commit
a3d8bd492d
1 changed files with 3 additions and 1 deletions
|
@ -964,6 +964,8 @@ void BfIRCodeGen::AddNop()
|
||||||
|
|
||||||
bool BfIRCodeGen::TryMemCpy(llvm::Value* ptr, llvm::Value* val)
|
bool BfIRCodeGen::TryMemCpy(llvm::Value* ptr, llvm::Value* val)
|
||||||
{
|
{
|
||||||
|
return false;
|
||||||
|
|
||||||
auto arrayType = llvm::dyn_cast<llvm::ArrayType>(val->getType());
|
auto arrayType = llvm::dyn_cast<llvm::ArrayType>(val->getType());
|
||||||
if (arrayType == NULL)
|
if (arrayType == NULL)
|
||||||
return false;
|
return false;
|
||||||
|
@ -1812,7 +1814,7 @@ void BfIRCodeGen::HandleNextCmd()
|
||||||
isConstant,
|
isConstant,
|
||||||
LLVMMapLinkageType(linkageType),
|
LLVMMapLinkageType(linkageType),
|
||||||
initializer,
|
initializer,
|
||||||
name.c_str());
|
name.c_str(), NULL, isTLS ? llvm::GlobalValue::GeneralDynamicTLSModel : llvm::GlobalValue::NotThreadLocal);
|
||||||
SetResult(curId, globalVariable);
|
SetResult(curId, globalVariable);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue