cvt.c (convert_lvalue): Remove.
authorKazu Hirata <kazu@cs.umass.edu>
Mon, 17 Jan 2005 08:10:06 +0000 (08:10 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Mon, 17 Jan 2005 08:10:06 +0000 (08:10 +0000)
* cvt.c (convert_lvalue): Remove.
* cp-tree.h: Remove the corresponding prototype.

From-SVN: r93755

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

index 5e46a8b851a9fd0b30a81103f530c93468ffc719..47b837c4859d098144bebc7749478cd7e31c2948 100644 (file)
@@ -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
index 855283b3c18b49322094aae9e81586d98100951e..d2a7b55edee18eba22b255c892150af45ef255c3 100644 (file)
@@ -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);
index a3ec5d45a73861761a2f17be6c2c807d0059e011..262970707e78304d9c9b77d65f2510d4c199ee51 100644 (file)
@@ -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.  */