mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Add support for the sig(set|long)jmp intrinsics
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7951 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1433,6 +1433,7 @@ bool CodeGenIntrinsic(LLVMIntrinsic::ID iid, CallInst &callInstr,
|
||||
addReg(callInstr.getOperand(1)));
|
||||
return true;
|
||||
|
||||
case LLVMIntrinsic::sigsetjmp:
|
||||
case LLVMIntrinsic::setjmp: {
|
||||
// act as if we return 0
|
||||
unsigned g0 = target.getRegInfo().getZeroRegNum();
|
||||
@@ -1441,6 +1442,7 @@ bool CodeGenIntrinsic(LLVMIntrinsic::ID iid, CallInst &callInstr,
|
||||
return true;
|
||||
}
|
||||
|
||||
case LLVMIntrinsic::siglongjmp:
|
||||
case LLVMIntrinsic::longjmp: {
|
||||
// call abort()
|
||||
Module* M = callInstr.getParent()->getParent()->getParent();
|
||||
|
Reference in New Issue
Block a user