summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-29 16:42:32 +0000
committerChris Lattner <sabre@nondot.org>2003-06-29 16:42:32 +0000
commit7ac937e011b69839dc9e598c15aaa37f7daa0b41 (patch)
tree0431adbbcd905abe26e642ed9e2501fbac140f70 /llvm/lib
parente019d9e068b8527d2145cbfb9556d5857fe921f4 (diff)
downloadbcm5719-llvm-7ac937e011b69839dc9e598c15aaa37f7daa0b41.tar.gz
bcm5719-llvm-7ac937e011b69839dc9e598c15aaa37f7daa0b41.zip
Until there is a setjmp/longjmp transformation pass, codegen setjmp as a noop
and longjmp as an abort! llvm-svn: 6977
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/InstSelectSimple.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/InstSelectSimple.cpp b/llvm/lib/Target/X86/InstSelectSimple.cpp
index 0566defd052..e57a6ab75ad 100644
--- a/llvm/lib/Target/X86/InstSelectSimple.cpp
+++ b/llvm/lib/Target/X86/InstSelectSimple.cpp
@@ -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!");
}
}
OpenPOWER on IntegriCloud