]> git.gag.com Git - fw/sdcc/blobdiff - src/mcs51/gen.c
Some code cleanup & fixed problem of used bdefore definitions
[fw/sdcc] / src / mcs51 / gen.c
index 770fc08457ba8de3b3aecf14534af18bdf110006..5e30e4120f690c7f7147390b097b1f04da9c6ba2 100644 (file)
@@ -251,25 +251,9 @@ static void genSetDPTR(int n)
 /*-----------------------------------------------------------------*/
 static int pointerCode (link *etype)
 {
-    int p_type;
 
     return PTR_TYPE(SPEC_OCLS(etype));
 
-/*     if (SPEC_OCLS(etype)->codesp ) { */
-/*     p_type = CPOINTER ;      */
-/*     } */
-/*     else */
-/*     if (SPEC_OCLS(etype)->fmap && !SPEC_OCLS(etype)->paged) */
-/*         p_type = FPOINTER ; */
-/*     else */
-/*         if (SPEC_OCLS(etype)->fmap && SPEC_OCLS(etype)->paged) */
-/*             p_type = PPOINTER; */
-/*         else */
-/*             if (SPEC_OCLS(etype) == idata ) */
-/*                 p_type = IPOINTER; */
-/*             else */
-/*                 p_type = POINTER ; */
-/*     return p_type; */
 }
 
 /*-----------------------------------------------------------------*/
@@ -2284,7 +2268,6 @@ static void genEndFunction (iCode *ic)
        }
 
        /* if debug then send end of function */
-/*     if (options.debug && currFunc) { */
        if (currFunc) {
            _G.debugLine = 1;
            emitcode("","C$%s$%d$%d$%d ==.",
@@ -2398,8 +2381,6 @@ static int findLabelBackwards(iCode *ic, int key)
         }
     }
     
-    /* printf("findLabelBackwards: not found.\n"); */
-    
     return 0;
 }