summaryrefslogtreecommitdiff
path: root/lib/AsmParser
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-13 06:37:14 +0000
committerChris Lattner <sabre@nondot.org>2001-10-13 06:37:14 +0000
commit5efbbc28f61f5e13180f1f1cd0ce3ae6d77e9007 (patch)
treea516524e41365b1005ad3ff8cdcdc3399b3ec37d /lib/AsmParser
parentf1fef65157bac9fcb37eac934ffd58d3e1e3e7cb (diff)
downloadllvm-5efbbc28f61f5e13180f1f1cd0ce3ae6d77e9007.tar.gz
llvm-5efbbc28f61f5e13180f1f1cd0ce3ae6d77e9007.tar.bz2
llvm-5efbbc28f61f5e13180f1f1cd0ce3ae6d77e9007.tar.xz
Support the new Invoke instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@755 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser')
-rw-r--r--lib/AsmParser/Lexer.l4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/AsmParser/Lexer.l b/lib/AsmParser/Lexer.l
index 642496d994..5bbe672882 100644
--- a/lib/AsmParser/Lexer.l
+++ b/lib/AsmParser/Lexer.l
@@ -130,6 +130,8 @@ implementation { return IMPLEMENTATION; }
\.\.\. { return DOTDOTDOT; }
string { return STRING; }
null { return NULL_TOK; }
+to { return TO; }
+except { return EXCEPT; }
void { llvmAsmlval.PrimType = Type::VoidTy ; return VOID; }
bool { llvmAsmlval.PrimType = Type::BoolTy ; return BOOL; }
@@ -167,7 +169,6 @@ setgt { RET_TOK(BinaryOpVal, SetGT, SETGT); }
setle { RET_TOK(BinaryOpVal, SetLE, SETLE); }
setge { RET_TOK(BinaryOpVal, SetGE, SETGE); }
-to { return TO; }
phi { RET_TOK(OtherOpVal, PHINode, PHI); }
call { RET_TOK(OtherOpVal, Call, CALL); }
cast { RET_TOK(OtherOpVal, Cast, CAST); }
@@ -177,6 +178,7 @@ shr { RET_TOK(OtherOpVal, Shr, SHR); }
ret { RET_TOK(TermOpVal, Ret, RET); }
br { RET_TOK(TermOpVal, Br, BR); }
switch { RET_TOK(TermOpVal, Switch, SWITCH); }
+invoke { RET_TOK(TermOpVal, Invoke, INVOKE); }
malloc { RET_TOK(MemOpVal, Malloc, MALLOC); }