Skip to content

Commit 4dbd615

Browse files
committed
Removed debug prints
1 parent c2e4aee commit 4dbd615

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/main/java/compiler/hardcoded/compiler/instruction/IntermediateCodeOptimizer.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,17 @@ public IRProgram generate(IRProgram program) {
5050
for(IRFunction func : program.getFunctions()) {
5151
simplify(func);
5252

53-
System.out.println("\n" + func);
54-
for(int i = 0, line = 0; i < func.length(); i++) {
55-
IRInstruction inst = func.list.get(i);
56-
57-
if(inst.op == IRType.label) {
58-
System.out.printf("\n%4d: %s\n", line, inst);
59-
} else {
60-
System.out.printf("%4d: %s\n", line, inst);
61-
line++;
62-
}
63-
}
53+
// System.out.println("\n" + func);
54+
// for(int i = 0, line = 0; i < func.length(); i++) {
55+
// IRInstruction inst = func.list.get(i);
56+
//
57+
// if(inst.op == IRType.label) {
58+
// System.out.printf("\n%4d: %s\n", line, inst);
59+
// } else {
60+
// System.out.printf("%4d: %s\n", line, inst);
61+
// line++;
62+
// }
63+
// }
6464
}
6565

6666
// try {

0 commit comments

Comments
 (0)