diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-10-19 10:44:26 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-10-21 19:25:06 +0200 |
commit | 7623fb5259da19c33ffe6623b0f306f6c39ede27 (patch) | |
tree | ecc5bbdef334f4217b8b12bf4bffc17bcd15a10e | |
parent | 21cd079f538b8e175cd659c3d5d9c305b7ce7c6b (diff) |
Add aliases to GCC tree node to semantic graph node map
-rw-r--r-- | odb/parser.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
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<qualifier> (file, line, clmn, t, qc, qv, qr)); - unit_->new_edge<qualifies> (q, r); + qualifies& e (unit_->new_edge<qualifies> (q, r)); + unit_->insert (t, q); // See if there is a name hint for this type. // |