aboutsummaryrefslogtreecommitdiff
path: root/odb/parser.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-10-19 10:44:26 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-10-21 19:25:06 +0200
commit7623fb5259da19c33ffe6623b0f306f6c39ede27 (patch)
treeecc5bbdef334f4217b8b12bf4bffc17bcd15a10e /odb/parser.cxx
parent21cd079f538b8e175cd659c3d5d9c305b7ce7c6b (diff)
Add aliases to GCC tree node to semantic graph node map
Diffstat (limited to 'odb/parser.cxx')
-rw-r--r--odb/parser.cxx7
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.
//