diff options
author | Chris Lattner <sabre@nondot.org> | 2003-09-08 18:54:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-09-08 18:54:55 +0000 |
commit | 36143fc4440ac1fc2a0fc95a4999bcadc3ec207d (patch) | |
tree | 8e8d7c349a476eb4d2997258e6e3405fa0e2a994 /lib/Target/X86/InstSelectSimple.cpp | |
parent | a6ce898dad724380b1444f664f8e422ba1e746d0 (diff) |
Add support for the unwind instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8408 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/InstSelectSimple.cpp')
-rw-r--r-- | lib/Target/X86/InstSelectSimple.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/X86/InstSelectSimple.cpp b/lib/Target/X86/InstSelectSimple.cpp index f754d11066..6712d94f32 100644 --- a/lib/Target/X86/InstSelectSimple.cpp +++ b/lib/Target/X86/InstSelectSimple.cpp @@ -132,6 +132,7 @@ namespace { const std::vector<ValueRecord> &Args); void visitCallInst(CallInst &I); void visitInvokeInst(InvokeInst &II); + void visitUnwindInst(UnwindInst &UI); void visitIntrinsicCall(LLVMIntrinsic::ID ID, CallInst &I); // Arithmetic operators @@ -1020,6 +1021,10 @@ void ISel::visitInvokeInst(InvokeInst &II) { BuildMI(BB, X86::JMP, 1).addPCDisp(II.getNormalDest()); } +void ISel::visitUnwindInst(UnwindInst &UI) { + // unwind is not supported yet! Just abort when the unwind inst is executed! + BuildMI(BB, X86::CALLpcrel32, 1).addExternalSymbol("abort", true); +} void ISel::visitIntrinsicCall(LLVMIntrinsic::ID ID, CallInst &CI) { unsigned TmpReg1, TmpReg2; |