mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1029830 - IonMonkey: GVN: Rename "insert" to "add" for consistency with the HashSet API r=nbp
This commit is contained in:
parent
9bcda3e23a
commit
3c27b74805
@ -93,7 +93,7 @@ ValueNumberer::VisibleValues::findLeaderForAdd(MDefinition *def)
|
||||
|
||||
// Insert a value into the set.
|
||||
bool
|
||||
ValueNumberer::VisibleValues::insert(AddPtr p, MDefinition *def)
|
||||
ValueNumberer::VisibleValues::add(AddPtr p, MDefinition *def)
|
||||
{
|
||||
return set_.add(p, def);
|
||||
}
|
||||
@ -421,7 +421,7 @@ ValueNumberer::leader(MDefinition *def)
|
||||
values_.overwrite(p, def);
|
||||
} else {
|
||||
// No match. Add a new entry.
|
||||
if (!values_.insert(p, def))
|
||||
if (!values_.add(p, def))
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ class ValueNumberer
|
||||
|
||||
Ptr findLeader(const MDefinition *def) const;
|
||||
AddPtr findLeaderForAdd(MDefinition *def);
|
||||
bool insert(AddPtr p, MDefinition *def);
|
||||
bool add(AddPtr p, MDefinition *def);
|
||||
void overwrite(AddPtr p, MDefinition *def);
|
||||
void forget(const MDefinition *def);
|
||||
void clear();
|
||||
|
Loading…
Reference in New Issue
Block a user