diff options
author | Chris Lattner <sabre@nondot.org> | 2003-05-08 02:44:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-05-08 02:44:12 +0000 |
commit | 8f77daef04355c00b78b645f5aae5694e7a8b631 (patch) | |
tree | 44b5b785fe68c331d24b79ca5f6faa3850b9d586 /lib/AsmParser/llvmAsmParser.y | |
parent | 97b315a58581261ec4bd6430ec9b438ba5fb728e (diff) | |
download | external_llvm-8f77daef04355c00b78b645f5aae5694e7a8b631.zip external_llvm-8f77daef04355c00b78b645f5aae5694e7a8b631.tar.gz external_llvm-8f77daef04355c00b78b645f5aae5694e7a8b631.tar.bz2 |
Add support for the new va_arg instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6029 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/llvmAsmParser.y')
-rw-r--r-- | lib/AsmParser/llvmAsmParser.y | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y index fa57e91..eded8c4 100644 --- a/lib/AsmParser/llvmAsmParser.y +++ b/lib/AsmParser/llvmAsmParser.y @@ -720,7 +720,7 @@ Module *RunVMAsmParser(const std::string &Filename, FILE *F) { // Other Operators %type <OtherOpVal> ShiftOps -%token <OtherOpVal> PHI CALL INVOKE CAST SHL SHR +%token <OtherOpVal> PHI CALL INVOKE CAST SHL SHR VA_ARG %start Module %% @@ -1614,6 +1614,10 @@ InstVal : ArithmeticOps Types ValueRef ',' ValueRef { $$ = new CastInst($2, *$4); delete $4; } + | VA_ARG ResolvedVal ',' Types { + $$ = new VarArgInst($2, *$4); + delete $4; + } | PHI PHIList { const Type *Ty = $2->front().first->getType(); $$ = new PHINode(Ty); |