mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38: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)
|
||||
{
|
||||
auto& dbgResult = mDIBuilder->insertDeclare(val, (llvm::DILocalVariable*)varInfo, mDIBuilder->createExpression(),
|
||||
auto dbgResult = mDIBuilder->insertDeclare(val, (llvm::DILocalVariable*)varInfo, mDIBuilder->createExpression(),
|
||||
mIRBuilder->getCurrentDebugLocation(), insertBeforeInst);
|
||||
bool isA = dbgResult.is<llvm::Instruction*>();
|
||||
auto inst = dbgResult.get<llvm::Instruction*>();
|
||||
SetResult(curId, inst);
|
||||
}
|
||||
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());
|
||||
bool isA = dbgResult.is<llvm::Instruction*>();
|
||||
auto inst = dbgResult.get<llvm::Instruction*>();
|
||||
SetResult(curId, inst);
|
||||
}
|
||||
|
@ -6295,10 +6293,10 @@ int BF_LinuxFixLinkage()
|
|||
llvm::MCContext* ctx = NULL;
|
||||
llvm::raw_pwrite_stream* stream = NULL;
|
||||
|
||||
createWasmStreamer(*ctx, NULL, NULL, NULL, false);
|
||||
createMachOStreamer(*ctx, NULL, NULL, NULL, false, false, false);
|
||||
createAsmStreamer(*ctx, NULL, false, false, NULL, NULL, NULL, false);
|
||||
createELFStreamer(*ctx, NULL, NULL, NULL, false);
|
||||
createWasmStreamer(*ctx, NULL, NULL, NULL);
|
||||
createMachOStreamer(*ctx, NULL, NULL, NULL, false, false);
|
||||
createAsmStreamer(*ctx, NULL, NULL, NULL, NULL);
|
||||
createELFStreamer(*ctx, NULL, NULL, NULL);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue