diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-17 08:10:06 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-17 08:10:06 +0000 |
commit | d74d291df1ca8b3b03169b354723425ed0c13e63 (patch) | |
tree | 70720be92e956290d34847add99c8ab3d0e8e18a | |
parent | cc3df9d530cd25c25b3b9aa8c3649af5e359cf9c (diff) | |
download | gcc-d74d291df1ca8b3b03169b354723425ed0c13e63.tar.gz |
* cvt.c (convert_lvalue): Remove.
* cp-tree.h: Remove the corresponding prototype.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93755 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/cp/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/cp/cp-tree.h | 1 | ||||
-rw-r--r-- | gcc/cp/cvt.c | 13 |
3 files changed, 3 insertions, 14 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 5e46a8b851a..47b837c4859 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -3,6 +3,9 @@ * class.c (get_enclosing_class): Remove. * cp-tree.h: Remove the corresponding prototypes. + * cvt.c (convert_lvalue): Remove. + * cp-tree.h: Remove the corresponding prototype. + 2005-01-15 Jakub Jelinek <jakub@redhat.com> PR c++/19263 diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 855283b3c18..d2a7b55edee 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -3725,7 +3725,6 @@ extern void determine_key_method (tree); /* in cvt.c */ extern tree convert_to_reference (tree, tree, int, int, tree); extern tree convert_from_reference (tree); -extern tree convert_lvalue (tree, tree); extern tree force_rvalue (tree); extern tree ocp_convert (tree, tree, int, int); extern tree cp_convert (tree, tree); diff --git a/gcc/cp/cvt.c b/gcc/cp/cvt.c index a3ec5d45a73..262970707e7 100644 --- a/gcc/cp/cvt.c +++ b/gcc/cp/cvt.c @@ -569,19 +569,6 @@ convert_from_reference (tree val) return val; } -/* Implicitly convert the lvalue EXPR to another lvalue of type TOTYPE, - preserving cv-qualification. */ - -tree -convert_lvalue (tree totype, tree expr) -{ - totype = cp_build_qualified_type (totype, TYPE_QUALS (TREE_TYPE (expr))); - totype = build_reference_type (totype); - expr = convert_to_reference (totype, expr, CONV_IMPLICIT, LOOKUP_NORMAL, - NULL_TREE); - return convert_from_reference (expr); -} - /* Really perform an lvalue-to-rvalue conversion, including copying an argument of class type into a temporary. */ |