mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-26 02:22:29 +00:00
jmp_buf is really a pointer type that is passed around...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6935 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1178,12 +1178,12 @@ void CWriter::visitCallInst(CallInst &I) {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
case LLVMIntrinsic::setjmp:
|
case LLVMIntrinsic::setjmp:
|
||||||
Out << "setjmp((jmp_buf)";
|
Out << "setjmp(*(jmp_buf*)";
|
||||||
writeOperand(I.getOperand(1));
|
writeOperand(I.getOperand(1));
|
||||||
Out << ")";
|
Out << ")";
|
||||||
return;
|
return;
|
||||||
case LLVMIntrinsic::longjmp:
|
case LLVMIntrinsic::longjmp:
|
||||||
Out << "longjmp((jmp_buf)";
|
Out << "longjmp(*(jmp_buf*)";
|
||||||
writeOperand(I.getOperand(1));
|
writeOperand(I.getOperand(1));
|
||||||
Out << ", ";
|
Out << ", ";
|
||||||
writeOperand(I.getOperand(2));
|
writeOperand(I.getOperand(2));
|
||||||
|
|||||||
@@ -1178,12 +1178,12 @@ void CWriter::visitCallInst(CallInst &I) {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
case LLVMIntrinsic::setjmp:
|
case LLVMIntrinsic::setjmp:
|
||||||
Out << "setjmp((jmp_buf)";
|
Out << "setjmp(*(jmp_buf*)";
|
||||||
writeOperand(I.getOperand(1));
|
writeOperand(I.getOperand(1));
|
||||||
Out << ")";
|
Out << ")";
|
||||||
return;
|
return;
|
||||||
case LLVMIntrinsic::longjmp:
|
case LLVMIntrinsic::longjmp:
|
||||||
Out << "longjmp((jmp_buf)";
|
Out << "longjmp(*(jmp_buf*)";
|
||||||
writeOperand(I.getOperand(1));
|
writeOperand(I.getOperand(1));
|
||||||
Out << ", ";
|
Out << ", ";
|
||||||
writeOperand(I.getOperand(2));
|
writeOperand(I.getOperand(2));
|
||||||
|
|||||||
Reference in New Issue
Block a user