// $Id: ExitInstruction.java,v 1.1.1.1 1999/12/05 22:19:51 mpp Exp $

package IR2;

import java.util.*;

public class ExitInstruction extends LowInstruction {
  public ExitInstruction(LowInstruction n) {
	next = n;
  }

  public String desc() {
	return "exit";
  }

  public DelocalizedInstruction do_asm(Codegen c, MethodDescriptor d, 
                                       CFG output, DelocalizedInstruction prev)
  {
    return output.addElement(new DelocalizedExitInstruction(d), prev);
  } 


  /* Traversable methods. */
  public void traverse(Traversal t) {
    /* no next instruction, this is the end of the method */
  }
}
