From 7623fb5259da19c33ffe6623b0f306f6c39ede27 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 19 Oct 2011 10:44:26 +0200 Subject: Add aliases to GCC tree node to semantic graph node map --- odb/parser.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'odb/parser.cxx') diff --git a/odb/parser.cxx b/odb/parser.cxx index a520b3b..a5f17c3 100644 --- a/odb/parser.cxx +++ b/odb/parser.cxx @@ -1332,7 +1332,10 @@ emit_type (tree t, ts << "found node " << &r << " for type " << mv << endl; if (cp_type_quals (t) == TYPE_UNQUALIFIED) + { + unit_->insert (t, r); // Add this variant to the map. return r; + } // See if this type already has this variant. // @@ -1350,6 +1353,7 @@ emit_type (tree t, if (trace) ts << "found qualifier variant " << &q << endl; + unit_->insert (t, q); // Add this variant to the map. return q; } } @@ -1358,7 +1362,8 @@ emit_type (tree t, // unique in the tree so don't add this node to the map. // qualifier& q (unit_->new_node (file, line, clmn, t, qc, qv, qr)); - unit_->new_edge (q, r); + qualifies& e (unit_->new_edge (q, r)); + unit_->insert (t, q); // See if there is a name hint for this type. // -- cgit v1.1