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 | 5f46e8c9dae9a7f589629662df6cb7ce28a31ce0 (patch) | |
tree | 7a8b577718e5791cf3c7397c0adfc4db72aef835 /llvm/lib/AsmParser/llvmAsmParser.cpp | |
parent | 9d905c95e062327e783f2c4b865f375fea81403c (diff) | |
download | bcm5719-llvm-5f46e8c9dae9a7f589629662df6cb7ce28a31ce0.tar.gz bcm5719-llvm-5f46e8c9dae9a7f589629662df6cb7ce28a31ce0.zip |
Moved getBinaryOperator to the BinaryOperator class and the getUnaryOperator
to the UnaryOperator class (from the Instruction class).
llvm-svn: 21
Diffstat (limited to 'llvm/lib/AsmParser/llvmAsmParser.cpp')
-rw-r--r-- | llvm/lib/AsmParser/llvmAsmParser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/AsmParser/llvmAsmParser.cpp b/llvm/lib/AsmParser/llvmAsmParser.cpp index e79f1bf5f66..080d4ea647c 100644 --- a/llvm/lib/AsmParser/llvmAsmParser.cpp +++ b/llvm/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!"); ; |