diff options
author | Chris Lattner <sabre@nondot.org> | 2001-06-08 21:30:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-06-08 21:30:13 +0000 |
commit | 477c2ec3e01ddb67c3c079156f2ee2e1858bec42 (patch) | |
tree | 0a0978df36c7f87dae60a99848d549ddd3cd509b /lib/AsmParser | |
parent | daa6ae31c18fd948ceaa05a6ef6712612dd70d7f (diff) | |
download | llvm-477c2ec3e01ddb67c3c079156f2ee2e1858bec42.tar.gz llvm-477c2ec3e01ddb67c3c079156f2ee2e1858bec42.tar.bz2 llvm-477c2ec3e01ddb67c3c079156f2ee2e1858bec42.tar.xz |
Moved getBinaryOperator to the BinaryOperator class and the getUnaryOperator
to the UnaryOperator class (from the Instruction class).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser')
-rw-r--r-- | lib/AsmParser/llvmAsmParser.cpp | 4 | ||||
-rw-r--r-- | lib/AsmParser/llvmAsmParser.y | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/AsmParser/llvmAsmParser.cpp b/lib/AsmParser/llvmAsmParser.cpp index e79f1bf5f6..080d4ea647 100644 --- a/lib/AsmParser/llvmAsmParser.cpp +++ b/lib/AsmParser/llvmAsmParser.cpp @@ -1851,7 +1851,7 @@ case 112: case 113: #line 854 "llvmAsmParser.y" { - yyval.InstVal = Instruction::getBinaryOperator(yyvsp[-4].BinaryOpVal, getVal(yyvsp[-3].TypeVal, yyvsp[-2].ValIDVal), getVal(yyvsp[-3].TypeVal, yyvsp[0].ValIDVal)); + yyval.InstVal = BinaryOperator::getBinaryOperator(yyvsp[-4].BinaryOpVal, getVal(yyvsp[-3].TypeVal, yyvsp[-2].ValIDVal), getVal(yyvsp[-3].TypeVal, yyvsp[0].ValIDVal)); if (yyval.InstVal == 0) ThrowException("binary operator returned null!"); ; @@ -1859,7 +1859,7 @@ case 113: case 114: #line 859 "llvmAsmParser.y" { - yyval.InstVal = Instruction::getUnaryOperator(yyvsp[-2].UnaryOpVal, getVal(yyvsp[-1].TypeVal, yyvsp[0].ValIDVal)); + yyval.InstVal = UnaryOperator::getUnaryOperator(yyvsp[-2].UnaryOpVal, getVal(yyvsp[-1].TypeVal, yyvsp[0].ValIDVal)); if (yyval.InstVal == 0) ThrowException("unary operator returned null!"); ; diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y index 01709ca5de..3a4873e8bc 100644 --- a/lib/AsmParser/llvmAsmParser.y +++ b/lib/AsmParser/llvmAsmParser.y @@ -852,12 +852,12 @@ ValueRefList : Types ValueRef { // Used for PHI nodes and call statements... ValueRefListE : ValueRefList | /*empty*/ { $$ = 0; } InstVal : BinaryOps Types ValueRef ',' ValueRef { - $$ = Instruction::getBinaryOperator($1, getVal($2, $3), getVal($2, $5)); + $$ = BinaryOperator::getBinaryOperator($1, getVal($2, $3), getVal($2, $5)); if ($$ == 0) ThrowException("binary operator returned null!"); } | UnaryOps Types ValueRef { - $$ = Instruction::getUnaryOperator($1, getVal($2, $3)); + $$ = UnaryOperator::getUnaryOperator($1, getVal($2, $3)); if ($$ == 0) ThrowException("unary operator returned null!"); } |