diff options
author | John R. Lenton <jlenton@gmail.com> | 2014-01-11 00:58:59 +0000 |
---|---|---|
committer | John R. Lenton <jlenton@gmail.com> | 2014-01-11 00:58:59 +0000 |
commit | b8698fca75018b5cacaf9b2fdfd821f86b8acaf4 (patch) | |
tree | 714b75f2779b79b826d745c13f725835001f787f /py/emitcpy.c | |
parent | ad97f2a49ea723cf21f828c99e0075ff1fd0680a (diff) | |
download | micropython-b8698fca75018b5cacaf9b2fdfd821f86b8acaf4.tar.gz micropython-b8698fca75018b5cacaf9b2fdfd821f86b8acaf4.zip |
unified the bops
Diffstat (limited to 'py/emitcpy.c')
-rw-r--r-- | py/emitcpy.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/py/emitcpy.c b/py/emitcpy.c index 7b2d50fb7e..dfc851d2ed 100644 --- a/py/emitcpy.c +++ b/py/emitcpy.c @@ -579,15 +579,6 @@ static void emit_cpy_binary_op(emit_t *emit, rt_binary_op_t op) { case RT_BINARY_OP_INPLACE_TRUE_DIVIDE: printf("INPLACE_TRUE_DIVIDE\n"); break; case RT_BINARY_OP_INPLACE_MODULO: printf("INPLACE_MODULO\n"); break; case RT_BINARY_OP_INPLACE_POWER: printf("INPLACE_POWER\n"); break; - default: assert(0); - } - } -} - -static void emit_cpy_compare_op(emit_t *emit, rt_compare_op_t op) { - emit_pre(emit, -1, 3); - if (emit->pass == PASS_3) { - switch (op) { case RT_COMPARE_OP_LESS: printf("COMPARE_OP <\n"); break; case RT_COMPARE_OP_MORE: printf("COMPARE_OP >\n"); break; case RT_COMPARE_OP_EQUAL: printf("COMPARE_OP ==\n"); break; @@ -863,7 +854,6 @@ const emit_method_table_t emit_cpython_method_table = { emit_cpy_pop_except, emit_cpy_unary_op, emit_cpy_binary_op, - emit_cpy_compare_op, emit_cpy_build_tuple, emit_cpy_build_list, emit_cpy_list_append, |