mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
If the target prefers it, use _setjmp/_longjmp should be used instead of setjmp/longjmp for llvm.setjmp/llvm.longjmp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23481 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8e6be8b921
commit
6c38b33613
@ -736,8 +736,12 @@ void SelectionDAGLowering::visitCall(CallInst &I) {
|
||||
case Intrinsic::returnaddress: visitFrameReturnAddress(I, false); return;
|
||||
case Intrinsic::frameaddress: visitFrameReturnAddress(I, true); return;
|
||||
|
||||
case Intrinsic::setjmp: RenameFn = "setjmp"; break;
|
||||
case Intrinsic::longjmp: RenameFn = "longjmp"; break;
|
||||
case Intrinsic::setjmp:
|
||||
RenameFn = "_setjmp"+!TLI.usesUnderscoreSetJmpLongJmp();
|
||||
break;
|
||||
case Intrinsic::longjmp:
|
||||
RenameFn = "_longjmp"+!TLI.usesUnderscoreSetJmpLongJmp();
|
||||
break;
|
||||
case Intrinsic::memcpy: visitMemIntrinsic(I, ISD::MEMCPY); return;
|
||||
case Intrinsic::memset: visitMemIntrinsic(I, ISD::MEMSET); return;
|
||||
case Intrinsic::memmove: visitMemIntrinsic(I, ISD::MEMMOVE); return;
|
||||
|
Loading…
Reference in New Issue
Block a user