* class.c (add_method): Don't set DECL_VIRTUAL_CONTEXT.
* decl2.c (grokclassfn): Likewise.
From-SVN: r32044
2000-02-17 Mark Mitchell <mark@codesourcery.com>
+ * class.c (add_method): Don't set DECL_VIRTUAL_CONTEXT.
+ * decl2.c (grokclassfn): Likewise.
+
* ir.texi: Document DECL_TEMPLATE_INSTANTIATIONS.
* decl2.c (lang_decode_option): Don't set default message length
add_method (type, fields, method)
tree type, *fields, method;
{
- /* Setting the DECL_CONTEXT and DECL_VIRTUAL_CONTEXT
- here is probably redundant. */
+ /* Setting the DECL_CONTEXT here is probably redundant. */
DECL_CONTEXT (method) = type;
- DECL_VIRTUAL_CONTEXT (method) = type;
if (fields && *fields)
*fields = build_overload (method, *fields);
}
DECL_ARGUMENTS (function) = last_function_parms;
- /* First approximations. */
DECL_CONTEXT (function) = ctype;
- DECL_VIRTUAL_CONTEXT (function) = ctype;
if (flags == DTOR_FLAG || DECL_CONSTRUCTOR_P (function))
maybe_retrofit_in_chrg (function);