]> granicus.if.org Git - yasm/commitdiff
Fix build breakage caused by not using sect access function.
authorPeter Johnson <peter@tortall.net>
Sun, 18 Aug 2002 18:47:20 +0000 (18:47 -0000)
committerPeter Johnson <peter@tortall.net>
Sun, 18 Aug 2002 18:47:20 +0000 (18:47 -0000)
svn path=/trunk/yasm/; revision=702

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

index b1f39c248e3d9df7681a529021d70966490f3f98..cd494363be755732f05b252f257f3fdb4f71b7f1 100644 (file)
@@ -67,7 +67,7 @@ basic_optimize_resolve_label(symrec *sym, section *sect,
        return intnum_new_int(startval + precbc->offset + precbc->len);
     if (bc && bc->opt_flags == BCFLAG_DONE)
        return intnum_new_int(startval + bc->offset);
-    if (sect->opt_flags == SECTFLAG_DONE)
+    if (section_get_opt_flags(sect) == SECTFLAG_DONE)
        return intnum_new_int(startval);
 
     return NULL;
index b1f39c248e3d9df7681a529021d70966490f3f98..cd494363be755732f05b252f257f3fdb4f71b7f1 100644 (file)
@@ -67,7 +67,7 @@ basic_optimize_resolve_label(symrec *sym, section *sect,
        return intnum_new_int(startval + precbc->offset + precbc->len);
     if (bc && bc->opt_flags == BCFLAG_DONE)
        return intnum_new_int(startval + bc->offset);
-    if (sect->opt_flags == SECTFLAG_DONE)
+    if (section_get_opt_flags(sect) == SECTFLAG_DONE)
        return intnum_new_int(startval);
 
     return NULL;