mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-11 04:52:21 +02:00
BF_LinuxFixLinkage fix
This commit is contained in:
parent
4c067564ce
commit
f9e9eddbc0
1 changed files with 6 additions and 8 deletions
|
@ -5481,17 +5481,15 @@ void BfIRCodeGen::HandleNextCmd()
|
||||||
{
|
{
|
||||||
if (insertBeforeInst != NULL)
|
if (insertBeforeInst != NULL)
|
||||||
{
|
{
|
||||||
auto& dbgResult = mDIBuilder->insertDeclare(val, (llvm::DILocalVariable*)varInfo, mDIBuilder->createExpression(),
|
auto dbgResult = mDIBuilder->insertDeclare(val, (llvm::DILocalVariable*)varInfo, mDIBuilder->createExpression(),
|
||||||
mIRBuilder->getCurrentDebugLocation(), insertBeforeInst);
|
mIRBuilder->getCurrentDebugLocation(), insertBeforeInst);
|
||||||
bool isA = dbgResult.is<llvm::Instruction*>();
|
|
||||||
auto inst = dbgResult.get<llvm::Instruction*>();
|
auto inst = dbgResult.get<llvm::Instruction*>();
|
||||||
SetResult(curId, inst);
|
SetResult(curId, inst);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
auto& dbgResult = mDIBuilder->insertDeclare(val, (llvm::DILocalVariable*)varInfo, mDIBuilder->createExpression(),
|
auto dbgResult = mDIBuilder->insertDeclare(val, (llvm::DILocalVariable*)varInfo, mDIBuilder->createExpression(),
|
||||||
mIRBuilder->getCurrentDebugLocation(), mIRBuilder->GetInsertBlock());
|
mIRBuilder->getCurrentDebugLocation(), mIRBuilder->GetInsertBlock());
|
||||||
bool isA = dbgResult.is<llvm::Instruction*>();
|
|
||||||
auto inst = dbgResult.get<llvm::Instruction*>();
|
auto inst = dbgResult.get<llvm::Instruction*>();
|
||||||
SetResult(curId, inst);
|
SetResult(curId, inst);
|
||||||
}
|
}
|
||||||
|
@ -6295,10 +6293,10 @@ int BF_LinuxFixLinkage()
|
||||||
llvm::MCContext* ctx = NULL;
|
llvm::MCContext* ctx = NULL;
|
||||||
llvm::raw_pwrite_stream* stream = NULL;
|
llvm::raw_pwrite_stream* stream = NULL;
|
||||||
|
|
||||||
createWasmStreamer(*ctx, NULL, NULL, NULL, false);
|
createWasmStreamer(*ctx, NULL, NULL, NULL);
|
||||||
createMachOStreamer(*ctx, NULL, NULL, NULL, false, false, false);
|
createMachOStreamer(*ctx, NULL, NULL, NULL, false, false);
|
||||||
createAsmStreamer(*ctx, NULL, false, false, NULL, NULL, NULL, false);
|
createAsmStreamer(*ctx, NULL, NULL, NULL, NULL);
|
||||||
createELFStreamer(*ctx, NULL, NULL, NULL, false);
|
createELFStreamer(*ctx, NULL, NULL, NULL);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue