Author: kjs
Date: Sun Feb 24 10:33:30 2008
New Revision: 26045

Modified:
   trunk/compilers/imcc/symreg.c
   trunk/compilers/imcc/symreg.h

Log:
[imcc] remove unused mk_address function and update header.

Modified: trunk/compilers/imcc/symreg.c
==============================================================================
--- trunk/compilers/imcc/symreg.c       (original)
+++ trunk/compilers/imcc/symreg.c       Sun Feb 24 10:33:30 2008
@@ -866,32 +866,6 @@
 
 /*
 
-=item C<SymReg * mk_address>
-
-Eventually make mk_address static
-
-=cut
-
-*/
-
-PARROT_WARN_UNUSED_RESULT
-PARROT_CANNOT_RETURN_NULL
-SymReg *
-mk_address(PARROT_INTERP, ARGIN(const char *name), int uniq)
-{
-    const int begins_with_underscore = (*name == '_');
-    SymHash * const h = begins_with_underscore
-        ? &IMCC_INFO(interp)->ghash : &IMCC_INFO(interp)->cur_unit->hash;
-    SymReg  * const s = _mk_address(interp, h, name, uniq);
-
-    if (begins_with_underscore)
-       s->usage |= U_FIXUP;
-
-    return s;
-}
-
-/*
-
 =item C<SymReg * mk_sub_label>
 
 Make and store a new address label for a sub.

Modified: trunk/compilers/imcc/symreg.h
==============================================================================
--- trunk/compilers/imcc/symreg.h       (original)
+++ trunk/compilers/imcc/symreg.h       Sun Feb 24 10:33:30 2008
@@ -251,12 +251,6 @@
 
 PARROT_WARN_UNUSED_RESULT
 PARROT_CANNOT_RETURN_NULL
-SymReg * mk_address(PARROT_INTERP, ARGIN(const char *name), int uniq)
-        __attribute__nonnull__(1)
-        __attribute__nonnull__(2);
-
-PARROT_WARN_UNUSED_RESULT
-PARROT_CANNOT_RETURN_NULL
 SymReg * mk_const(PARROT_INTERP, ARGIN(const char *name), int t)
         __attribute__nonnull__(1)
         __attribute__nonnull__(2);

Reply via email to