mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-30 08:39:02 +02:00
Added support for using a temporary to implement emulated ABI return from inline asm, could be easier to use, but I think this will do. It's so extremely target dependent in any case that doing a completely generic approach seems hard.
This commit is contained in:
@@ -88,8 +88,9 @@ struct IRAsmBlock
|
||||
AsmBlockStatement* asmBlock;
|
||||
const LLType* retty;
|
||||
unsigned retn;
|
||||
bool retemu; // emulate abi ret with a temporary
|
||||
|
||||
IRAsmBlock(AsmBlockStatement* b) : asmBlock(b), retty(NULL), retn(0) {}
|
||||
IRAsmBlock(AsmBlockStatement* b) : asmBlock(b), retty(NULL), retn(0), retemu(false) {}
|
||||
};
|
||||
|
||||
// llvm::CallInst and llvm::InvokeInst don't share a common base
|
||||
|
||||
Reference in New Issue
Block a user