mirror of
https://github.com/corda/corda.git
synced 2025-01-05 20:54:13 +00:00
remove redundant return_ type parameter
This commit is contained in:
parent
746c0fa0e8
commit
6fdd5d13ca
@ -90,7 +90,7 @@ class Compiler {
|
||||
ir::Type resultType,
|
||||
util::Slice<ir::Value*> arguments) = 0;
|
||||
|
||||
virtual void return_(ir::Type type, ir::Value* value) = 0;
|
||||
virtual void return_(ir::Value* value) = 0;
|
||||
virtual void return_() = 0;
|
||||
|
||||
virtual void initLocal(unsigned size, unsigned index, ir::Type type) = 0;
|
||||
|
@ -2462,10 +2462,9 @@ class MyCompiler: public Compiler {
|
||||
return result;
|
||||
}
|
||||
|
||||
virtual void return_(ir::Type type, ir::Value* a)
|
||||
virtual void return_(ir::Value* a)
|
||||
{
|
||||
assert(&c, a->type == type);
|
||||
appendReturn(&c, type.size(), static_cast<Value*>(a));
|
||||
appendReturn(&c, a->type.size(), static_cast<Value*>(a));
|
||||
}
|
||||
|
||||
virtual void return_()
|
||||
|
@ -1715,7 +1715,6 @@ class Frame {
|
||||
|
||||
void pushLongQuiet(ir::Value* o)
|
||||
{
|
||||
// assert(t, o->type == types.i8);
|
||||
pushQuiet(types.i8, o);
|
||||
}
|
||||
|
||||
@ -4358,7 +4357,7 @@ compile(MyThread* t, Frame* initialFrame, unsigned initialIp,
|
||||
|
||||
case areturn: {
|
||||
handleExit(t, frame);
|
||||
c->return_(types.object, frame->popObject());
|
||||
c->return_(frame->popObject());
|
||||
} goto next;
|
||||
|
||||
case arraylength: {
|
||||
@ -5273,13 +5272,13 @@ compile(MyThread* t, Frame* initialFrame, unsigned initialIp,
|
||||
|
||||
case ireturn: {
|
||||
handleExit(t, frame);
|
||||
c->return_(types.i4, frame->popInt());
|
||||
c->return_(frame->popInt());
|
||||
}
|
||||
goto next;
|
||||
|
||||
case freturn: {
|
||||
handleExit(t, frame);
|
||||
c->return_(types.f4, frame->popInt());
|
||||
c->return_(frame->popInt());
|
||||
} goto next;
|
||||
|
||||
case istore:
|
||||
@ -5594,13 +5593,13 @@ compile(MyThread* t, Frame* initialFrame, unsigned initialIp,
|
||||
|
||||
case lreturn: {
|
||||
handleExit(t, frame);
|
||||
c->return_(types.i8, frame->popLong());
|
||||
c->return_(frame->popLong());
|
||||
}
|
||||
goto next;
|
||||
|
||||
case dreturn: {
|
||||
handleExit(t, frame);
|
||||
c->return_(types.f8, frame->popLong());
|
||||
c->return_(frame->popLong());
|
||||
} goto next;
|
||||
|
||||
case lshl:
|
||||
|
Loading…
Reference in New Issue
Block a user