remove redundant Compiler::unaryOp type parameter

This commit is contained in:
Joshua Warner
2014-05-03 20:41:54 -06:00
committed by Joshua Warner
parent a0443f0ef1
commit 008bb6b86e
3 changed files with 9 additions and 15 deletions

View File

@ -2678,16 +2678,14 @@ class MyCompiler: public Compiler {
}
virtual ir::Value* unaryOp(lir::BinaryOperation op,
ir::Type type,
ir::Value* a)
{
assert(&c, a->type == type);
assert(&c,
(isGeneralUnaryOp(op) and isGeneralValue(a))or(isFloatUnaryOp(op)
and isFloatValue(a)));
Value* result = value(&c, a->type);
appendTranslate(
&c, op, type.size(), static_cast<Value*>(a), type.size(), result);
&c, op, a->type.size(), static_cast<Value*>(a), a->type.size(), result);
return result;
}