From 36143fc4440ac1fc2a0fc95a4999bcadc3ec207d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 8 Sep 2003 18:54:55 +0000 Subject: Add support for the unwind instruction git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8408 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AsmParser/llvmAsmParser.y | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/AsmParser/llvmAsmParser.y') diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y index 6971ebe..930f1aa 100644 --- a/lib/AsmParser/llvmAsmParser.y +++ b/lib/AsmParser/llvmAsmParser.y @@ -701,7 +701,7 @@ Module *RunVMAsmParser(const std::string &Filename, FILE *F) { %token OPAQUE NOT EXTERNAL TARGET ENDIAN POINTERSIZE LITTLE BIG // Basic Block Terminating Operators -%token RET BR SWITCH +%token RET BR SWITCH INVOKE UNWIND // Binary Operators %type BinaryOps // all the binary operators @@ -714,7 +714,7 @@ Module *RunVMAsmParser(const std::string &Filename, FILE *F) { // Other Operators %type ShiftOps -%token PHI CALL INVOKE CAST SHL SHR VA_ARG +%token PHI CALL CAST SHL SHR VA_ARG %start Module %% @@ -1535,6 +1535,9 @@ BBTerminatorInst : RET ResolvedVal { // Return with a result... $$ = new InvokeInst(V, Normal, Except, *$5); } delete $5; + } + | UNWIND { + $$ = new UnwindInst(); }; -- cgit v1.1