aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cp-tree.h
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2017-05-25 20:55:07 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2017-05-25 20:55:07 +0000
commit87c976aeadc431c802452673b4ab95b7827af6f0 (patch)
tree7d7705b33c42c49589518b786eaca278d9ba4f20 /gcc/cp/cp-tree.h
parentde3fb1a6464423bac12fe67b893dc62081902de2 (diff)
downloadgcc-87c976aeadc431c802452673b4ab95b7827af6f0.zip
gcc-87c976aeadc431c802452673b4ab95b7827af6f0.tar.gz
gcc-87c976aeadc431c802452673b4ab95b7827af6f0.tar.bz2
Kill OVL_CURRENT, OVL_NEXT.
* cp-tree.h (OVL_CURRENT, OVL_NEXT): Delete. * name-lookup.c (set_decl_namespace): Use ovl_iterator. (consider_binding_level): Use OVL_FIRST. (cp_emit_debug_info_for_using): Use lkp_iterator. * pt.c (check_explicit_specialization): Use ovl_iterator. From-SVN: r248469
Diffstat (limited to 'gcc/cp/cp-tree.h')
-rw-r--r--gcc/cp/cp-tree.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index 11f8d01..514cb89 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -659,12 +659,6 @@ typedef struct ptrmem_cst * ptrmem_cst_t;
(((struct tree_overload*)OVERLOAD_CHECK (NODE))->function)
#define OVL_CHAIN(NODE) TREE_CHAIN (NODE)
-/* Polymorphic access to FUNCTION and CHAIN. */
-#define OVL_CURRENT(NODE) \
- ((TREE_CODE (NODE) == OVERLOAD) ? OVL_FUNCTION (NODE) : (NODE))
-#define OVL_NEXT(NODE) \
- ((TREE_CODE (NODE) == OVERLOAD) ? TREE_CHAIN (NODE) : NULL_TREE)
-
/* If set, this was imported in a using declaration. */
#define OVL_USING_P(NODE) TREE_LANG_FLAG_1 (OVERLOAD_CHECK (NODE))
/* If set, this overload is a hidden decl. */