Change the 'exception' destination to the 'unwind' destination. We will always
authorChris Lattner <sabre@nondot.org>
Sun, 8 Feb 2004 21:48:25 +0000 (21:48 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 8 Feb 2004 21:48:25 +0000 (21:48 +0000)
allow 'except' instead of 'unwind' here though.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11203 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AsmParser/Lexer.l
lib/AsmParser/llvmAsmParser.y

index b0e174af50f930ac632688883efcc2880c1bd638..999a5762998e5bf7dc6189a24777254cbd16ab66 100644 (file)
@@ -191,7 +191,7 @@ zeroinitializer { return ZEROINITIALIZER; }
 \.\.\.          { return DOTDOTDOT; }
 null            { return NULL_TOK; }
 to              { return TO; }
-except          { return EXCEPT; }
+except          { RET_TOK(TermOpVal, Unwind, UNWIND); }
 not             { return NOT; }  /* Deprecated, turned into XOR */
 target          { return TARGET; }
 endian          { return ENDIAN; }
index a63c19abd35b194ee23347f04c3bedb4b05716ab..523f95cd44a7abdce52aa7c2829464f06298ea7f 100644 (file)
@@ -816,7 +816,7 @@ using namespace llvm;
 
 %token IMPLEMENTATION ZEROINITIALIZER TRUE FALSE BEGINTOK ENDTOK
 %token DECLARE GLOBAL CONSTANT VOLATILE
-%token TO EXCEPT DOTDOTDOT NULL_TOK CONST INTERNAL LINKONCE WEAK  APPENDING
+%token TO DOTDOTDOT NULL_TOK CONST INTERNAL LINKONCE WEAK  APPENDING
 %token OPAQUE NOT EXTERNAL TARGET ENDIAN POINTERSIZE LITTLE BIG
 
 // Basic Block Terminating Operators 
@@ -1611,7 +1611,7 @@ BBTerminatorInst : RET ResolvedVal {              // Return with a result...
     $$ = S;
   }
   | INVOKE TypesV ValueRef '(' ValueRefListE ')' TO ResolvedVal 
-    EXCEPT ResolvedVal {
+    UNWIND ResolvedVal {
     const PointerType *PFTy;
     const FunctionType *Ty;