forked from OSchip/llvm-project
parent
43fd822249
commit
3b793a4dc9
|
@ -1276,13 +1276,12 @@ public:
|
|||
}
|
||||
|
||||
void removeValue(StringRef Name) {
|
||||
assert(getValue(Name) && "Cannot remove an entry that does not exist!");
|
||||
for (unsigned i = 0, e = Values.size(); i != e; ++i)
|
||||
if (Values[i].getName() == Name) {
|
||||
Values.erase(Values.begin()+i);
|
||||
return;
|
||||
}
|
||||
assert(0 && "Name does not exist in record!");
|
||||
assert(0 && "Cannot remove an entry that does not exist!");
|
||||
}
|
||||
|
||||
bool isSubClassOf(const Record *R) const {
|
||||
|
|
Loading…
Reference in New Issue