Commit 344e498c by Mark Mitchell Committed by Mark Mitchell

class.c (build_vtable_entry_ref): Correct usage of get_vtbl_decl_for_binfo.

	* class.c (build_vtable_entry_ref): Correct usage of
	get_vtbl_decl_for_binfo.

From-SVN: r34195
parent cab8bde9
2000-05-26 Mark Mitchell <mark@codesourcery.com>
* class.c (build_vtable_entry_ref): Correct usage of
get_vtbl_decl_for_binfo.
* decl2.c (grokclassfn): Set DECL_LANGUAGE here.
* method.c (implicitly_declare_fn): Not here.
......
......@@ -485,7 +485,9 @@ build_vtable_entry_ref (basetype, vtbl, idx)
static char asm_stmt[] = ".vtable_entry %c0, %c1";
tree s, i, i2;
s = build_unary_op (ADDR_EXPR, get_vtbl_decl_for_binfo (basetype), 0);
s = build_unary_op (ADDR_EXPR,
get_vtbl_decl_for_binfo (TYPE_BINFO (basetype)),
0);
s = build_tree_list (build_string (1, "s"), s);
i = build_array_ref (vtbl, idx);
......
// Build don't link:
// Special g++ Options: -fvtable-gc
// Origin: Mark Mitchell <mitchell@codesourcery.com>
struct S {
virtual void f ();
};
S* s;
void g ()
{
s->f ();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment