diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-03-29 11:40:32 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-03-29 11:40:32 +0200 |
commit | 16692f69f3ce5e533c835b553bd00e149191fd9c (patch) | |
tree | 1c0a0b6f45499aae413401c1f377ba7b4ef1cdab /odb/semantics/unit.hxx | |
parent | 02900cdf9a156e631b16c4360c8cb7e6484b004f (diff) |
Assign tree nodes to graph type nodes
Diffstat (limited to 'odb/semantics/unit.hxx')
-rw-r--r-- | odb/semantics/unit.hxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/odb/semantics/unit.hxx b/odb/semantics/unit.hxx index c208876..05eec7f 100644 --- a/odb/semantics/unit.hxx +++ b/odb/semantics/unit.hxx @@ -25,20 +25,20 @@ namespace semantics new_edge<global_names> (*this, *this); } - // Mapping from GCC tree node to semantic graph node. + // Mapping from tree nodes to semantic graph nodes. // public: node* - find (gcc_tree key) const + find (tree key) const { - gcc_tree_node_map::const_iterator i (gcc_tree_node_map_.find (key)); - return i != gcc_tree_node_map_.end () ? i->second : 0; + tree_node_map::const_iterator i (tree_node_map_.find (key)); + return i != tree_node_map_.end () ? i->second : 0; } void - insert (gcc_tree key, node& value) + insert (tree key, node& value) { - gcc_tree_node_map_[key] = &value; + tree_node_map_[key] = &value; } public: @@ -84,9 +84,9 @@ namespace semantics // template <typename T> T& - new_fund_node () + new_fund_node (tree tn) { - return graph_.new_node<T> (); + return graph_.new_node<T> (tn); } protected: @@ -134,8 +134,8 @@ namespace semantics private: graph<node, edge>& graph_; - typedef std::map<gcc_tree, node*> gcc_tree_node_map; - gcc_tree_node_map gcc_tree_node_map_; + typedef std::map<tree, node*> tree_node_map; + tree_node_map tree_node_map_; }; } |