mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Remove unnecessary debugging code
This commit is contained in:
parent
4e5e4af3e6
commit
e59351723a
|
@ -16,7 +16,6 @@
|
|||
package org.teavm.model;
|
||||
|
||||
import java.util.*;
|
||||
import org.teavm.model.instructions.AssignInstruction;
|
||||
import org.teavm.model.instructions.InstructionReader;
|
||||
|
||||
/**
|
||||
|
@ -67,19 +66,7 @@ public class BasicBlock implements BasicBlockReader {
|
|||
@Override
|
||||
public void add(int index, Instruction e) {
|
||||
if (e.getBasicBlock() != null) {
|
||||
if (e instanceof AssignInstruction){
|
||||
AssignInstruction ae = (AssignInstruction)e;
|
||||
System.out.println("Assignment "+ae.getReceiver()+" -> "+ae.getAssignee());
|
||||
System.out.println(ae.getReceiver().getDebugNames());
|
||||
System.out.println(ae.getReceiver().getIndex());
|
||||
System.out.println(ae.getReceiver().getProgram());
|
||||
System.out.println(ae.getAssignee().getDebugNames());
|
||||
System.out.println(ae.getAssignee().getIndex());
|
||||
System.out.println(ae.getAssignee().getProgram());
|
||||
|
||||
System.out.println(ae.getBasicBlock().getInstructions());
|
||||
}
|
||||
throw new IllegalArgumentException("This instruction is in some basic block "+e+", "+e.getLocation());
|
||||
throw new IllegalArgumentException("This instruction is in some basic block");
|
||||
}
|
||||
e.setBasicBlock(BasicBlock.this);
|
||||
instructions.add(index, e);
|
||||
|
|
Loading…
Reference in New Issue
Block a user