]> granicus.if.org Git - yasm/commitdiff
Don't call bc_resolve (it's going away soon).
authorPeter Johnson <peter@tortall.net>
Fri, 15 Mar 2002 22:19:58 +0000 (22:19 -0000)
committerPeter Johnson <peter@tortall.net>
Fri, 15 Mar 2002 22:19:58 +0000 (22:19 -0000)
FIXME: Do we really need to check completion of all sections?

svn path=/trunk/yasm/; revision=500

modules/optimizers/basic/basic-optimizer.c
src/optimizers/basic/basic-optimizer.c

index abad1ff02366d3f413e01096e7e32c3456a09e20..103c0eb062e7c91cf60287611bb4e76140bafe1a 100644 (file)
@@ -158,7 +158,6 @@ basic_optimize_bytecode_2(bytecode *bc, /*@unused@*/ /*@null@*/ void *d)
        InternalError(_("Optimizer pass 1 missed a bytecode!"));
        return -1;
     }
-    bc_resolve(bc, basic_optimize_resolve_label);
     return 0;
 }
 
@@ -191,9 +190,7 @@ basic_optimize(sectionhead *sections)
     if (sections_traverse(sections, NULL, basic_optimize_section_1) < 0)
        return;
 
-    /* Pass 2:
-     *  Resolve (compute value of) forward references.
-     */
+    /* FIXME: Really necessary?  Check completion of all sections */
     sections_traverse(sections, NULL, basic_optimize_section_2);
 }
 
index abad1ff02366d3f413e01096e7e32c3456a09e20..103c0eb062e7c91cf60287611bb4e76140bafe1a 100644 (file)
@@ -158,7 +158,6 @@ basic_optimize_bytecode_2(bytecode *bc, /*@unused@*/ /*@null@*/ void *d)
        InternalError(_("Optimizer pass 1 missed a bytecode!"));
        return -1;
     }
-    bc_resolve(bc, basic_optimize_resolve_label);
     return 0;
 }
 
@@ -191,9 +190,7 @@ basic_optimize(sectionhead *sections)
     if (sections_traverse(sections, NULL, basic_optimize_section_1) < 0)
        return;
 
-    /* Pass 2:
-     *  Resolve (compute value of) forward references.
-     */
+    /* FIXME: Really necessary?  Check completion of all sections */
     sections_traverse(sections, NULL, basic_optimize_section_2);
 }