cp-tree.h (SET_TMPL_ARG, [...]): Remove.
authorKazu Hirata <kazu@cs.umass.edu>
Thu, 14 Apr 2005 12:22:49 +0000 (12:22 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Thu, 14 Apr 2005 12:22:49 +0000 (12:22 +0000)
* cp-tree.h (SET_TMPL_ARG, ENUM_TI_TEMPLATE, ENUM_TI_ARGS,
CLASSTYPE_TEMPLATE_LEVEL): Remove.

From-SVN: r98133

gcc/cp/ChangeLog
gcc/cp/cp-tree.h

index 3019b86084c0f9eb25989b1f04be9b5e9f1a532f..b12b7916377c5727163ff483cd8f385aec3da721 100644 (file)
@@ -1,3 +1,8 @@
+2005-04-14  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * cp-tree.h (SET_TMPL_ARG, ENUM_TI_TEMPLATE, ENUM_TI_ARGS,
+       CLASSTYPE_TEMPLATE_LEVEL): Remove.
+
 2005-04-11  Mark Mitchell  <mark@codesourcery.com>
 
        * decl2.c (determine_visibility): Don't use export_class_data.
index 08e554fe435c059ceb5418a87e8f467b59cfeb23..e1e15a8739c99166be1dd6769d8c1bf31fd1282a 100644 (file)
@@ -2141,11 +2141,6 @@ struct lang_decl GTY(())
 #define TMPL_ARG(ARGS, LEVEL, IDX)                             \
   (TREE_VEC_ELT (TMPL_ARGS_LEVEL (ARGS, LEVEL), IDX))
 
-/* Set the IDXth element in the LEVELth level of ARGS to VAL.  This
-   macro does not work with single-level argument vectors.  */
-#define SET_TMPL_ARG(ARGS, LEVEL, IDX, VAL)                    \
-  (TREE_VEC_ELT (TREE_VEC_ELT ((ARGS), (LEVEL) - 1), (IDX)) = (VAL))
-
 /* Given a single level of template arguments in NODE, return the
    number of arguments.  */
 #define NUM_TMPL_ARGS(NODE)                            \
@@ -2187,10 +2182,6 @@ struct lang_decl GTY(())
 #define DECL_TI_ARGS(NODE)          TI_ARGS (DECL_TEMPLATE_INFO (NODE))
 #define CLASSTYPE_TI_TEMPLATE(NODE) TI_TEMPLATE (CLASSTYPE_TEMPLATE_INFO (NODE))
 #define CLASSTYPE_TI_ARGS(NODE)     TI_ARGS (CLASSTYPE_TEMPLATE_INFO (NODE))
-#define ENUM_TI_TEMPLATE(NODE)                 \
-  TI_TEMPLATE (ENUM_TEMPLATE_INFO (NODE))
-#define ENUM_TI_ARGS(NODE)                     \
-  TI_ARGS (ENUM_TEMPLATE_INFO (NODE))
 
 /* For a template instantiation TYPE, returns the TYPE corresponding
    to the primary template.  Otherwise returns TYPE itself.  */
@@ -2763,9 +2754,6 @@ struct lang_decl GTY(())
 /* Returns nonzero if NODE is a primary template.  */
 #define PRIMARY_TEMPLATE_P(NODE) (DECL_PRIMARY_TEMPLATE (NODE) == (NODE))
 
-#define CLASSTYPE_TEMPLATE_LEVEL(NODE) \
-  (TREE_INT_CST_LOW (TREE_PURPOSE (CLASSTYPE_TI_TEMPLATE (NODE))))
-
 /* Indicates whether or not (and how) a template was expanded for this
    FUNCTION_DECL or VAR_DECL.
      0=normal declaration, e.g. int min (int, int);