Commit 3ad695b9 by Dehao Chen Committed by Dehao Chen

Fix the typo of discriminator.

2013-05-24  Dehao Chen  <dehao@google.com>

	* gcc/tree-cfg.c (locus_discrim_map): Fix the typo.
	(locus_discrim_hasher): Likewise.
	(locus_discrim_hasher::hash): Likewise.
	(locus_discrim_hasher::equal): Likewise.

From-SVN: r199300
parent 82338059
2013-05-24 Dehao Chen <dehao@google.com>
* gcc/tree-cfg.c (locus_discrim_map): Fix the typo.
(locus_discrim_hasher): Likewise.
(locus_discrim_hasher::hash): Likewise.
(locus_discrim_hasher::equal): Likewise.
2013-05-24 Martin Jambor <mjambor@suse.cz> 2013-05-24 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/57294 PR tree-optimization/57294
......
...@@ -91,7 +91,7 @@ struct locus_discrim_map ...@@ -91,7 +91,7 @@ struct locus_discrim_map
/* Hashtable helpers. */ /* Hashtable helpers. */
struct locus_descrim_hasher : typed_free_remove <locus_discrim_map> struct locus_discrim_hasher : typed_free_remove <locus_discrim_map>
{ {
typedef locus_discrim_map value_type; typedef locus_discrim_map value_type;
typedef locus_discrim_map compare_type; typedef locus_discrim_map compare_type;
...@@ -103,7 +103,7 @@ struct locus_descrim_hasher : typed_free_remove <locus_discrim_map> ...@@ -103,7 +103,7 @@ struct locus_descrim_hasher : typed_free_remove <locus_discrim_map>
a hash table entry that maps a location_t to a discriminator. */ a hash table entry that maps a location_t to a discriminator. */
inline hashval_t inline hashval_t
locus_descrim_hasher::hash (const value_type *item) locus_discrim_hasher::hash (const value_type *item)
{ {
return LOCATION_LINE (item->locus); return LOCATION_LINE (item->locus);
} }
...@@ -112,12 +112,12 @@ locus_descrim_hasher::hash (const value_type *item) ...@@ -112,12 +112,12 @@ locus_descrim_hasher::hash (const value_type *item)
point to the two hash table entries to compare. */ point to the two hash table entries to compare. */
inline bool inline bool
locus_descrim_hasher::equal (const value_type *a, const compare_type *b) locus_discrim_hasher::equal (const value_type *a, const compare_type *b)
{ {
return LOCATION_LINE (a->locus) == LOCATION_LINE (b->locus); return LOCATION_LINE (a->locus) == LOCATION_LINE (b->locus);
} }
static hash_table <locus_descrim_hasher> discriminator_per_locus; static hash_table <locus_discrim_hasher> discriminator_per_locus;
/* Basic blocks and flowgraphs. */ /* Basic blocks and flowgraphs. */
static void make_blocks (gimple_seq); static void make_blocks (gimple_seq);
......
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