remove unused Compiler::push method

This commit is contained in:
Joshua Warner 2014-04-30 20:16:14 -06:00 committed by Joshua Warner
parent 49a5a9f398
commit 75f0812f7a
2 changed files with 0 additions and 11 deletions

View File

@ -82,7 +82,6 @@ class Compiler {
virtual Operand* register_(int number) = 0;
virtual void push(unsigned footprint) = 0;
virtual void push(ir::Type type, Operand* value) = 0;
virtual void save(unsigned footprint, Operand* value) = 0;
virtual Operand* pop(unsigned footprint) = 0;

View File

@ -2339,16 +2339,6 @@ class MyCompiler: public Compiler {
return c.logicalCode[c.logicalIp]->lastEvent->makeCodePromise(&c);
}
virtual void push(unsigned footprint UNUSED) {
assert(&c, footprint == 1);
Value* v = value(&c, lir::ValueGeneral);
Stack* s = compiler::stack(&c, v, c.stack);
v->home = frameIndex(&c, s->index + c.localFootprint);
c.stack = s;
}
virtual void push(ir::Type type, Operand* value)
{
// TODO: once type information is flowed properly, enable this assert.