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