Until there is a setjmp/longjmp transformation pass, codegen setjmp as a noop

and longjmp as an abort!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6977 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-06-29 16:42:32 +00:00
parent dbb6cd12eb
commit c151e4f415
2 changed files with 8 additions and 0 deletions

View File

@ -978,6 +978,10 @@ void ISel::visitIntrinsicCall(LLVMIntrinsic::ID ID, CallInst &CI) {
addDirectMem(BuildMI(BB, X86::MOVrm32, 5), TmpReg2).addReg(TmpReg1);
return;
case LLVMIntrinsic::longjmp:
BuildMI(X86::CALLpcrel32, 1).addExternalSymbol("abort", true);
case LLVMIntrinsic::setjmp:
return;
default: assert(0 && "Unknown intrinsic for X86!");
}
}

View File

@ -978,6 +978,10 @@ void ISel::visitIntrinsicCall(LLVMIntrinsic::ID ID, CallInst &CI) {
addDirectMem(BuildMI(BB, X86::MOVrm32, 5), TmpReg2).addReg(TmpReg1);
return;
case LLVMIntrinsic::longjmp:
BuildMI(X86::CALLpcrel32, 1).addExternalSymbol("abort", true);
case LLVMIntrinsic::setjmp:
return;
default: assert(0 && "Unknown intrinsic for X86!");
}
}