Renamed get.*Operator to create seeing that it would have to be qualified
with the classname anyways.
llvm-svn: 74
diff --git a/llvm/lib/AsmParser/llvmAsmParser.y b/llvm/lib/AsmParser/llvmAsmParser.y
index f178d73..3f71274 100644
--- a/llvm/lib/AsmParser/llvmAsmParser.y
+++ b/llvm/lib/AsmParser/llvmAsmParser.y
@@ -866,12 +866,12 @@
ValueRefListE : ValueRefList | /*empty*/ { $$ = 0; }
InstVal : BinaryOps Types ValueRef ',' ValueRef {
- $$ = BinaryOperator::getBinaryOperator($1, getVal($2, $3), getVal($2, $5));
+ $$ = BinaryOperator::create($1, getVal($2, $3), getVal($2, $5));
if ($$ == 0)
ThrowException("binary operator returned null!");
}
| UnaryOps Types ValueRef {
- $$ = UnaryOperator::getUnaryOperator($1, getVal($2, $3));
+ $$ = UnaryOperator::create($1, getVal($2, $3));
if ($$ == 0)
ThrowException("unary operator returned null!");
}