Remove some uses of the svector template.

I'm adding more uses of the make_range_from_width function, so
it seems like time to get rid of its use of the svector template.
This thread led to a lot of other uses of svector that had to
also be removed.
This commit is contained in:
Stephen Williams
2010-10-25 19:36:44 -07:00
parent eb4ed82893
commit cced1e771b
22 changed files with 478 additions and 475 deletions
+6 -4
View File
@@ -55,12 +55,14 @@ void PDelays::set_delay(PExpr*del)
}
void PDelays::set_delays(const svector<PExpr*>*del, bool df)
void PDelays::set_delays(const list<PExpr*>*del, bool df)
{
assert(del);
assert(del->count() <= 3);
for (unsigned idx = 0 ; idx < del->count() ; idx += 1)
delay_[idx] = (*del)[idx];
assert(del->size() <= 3);
list<PExpr*>::const_iterator cur = del->begin();
for (unsigned idx = 0 ; cur != del->end() ; idx += 1, ++cur)
delay_[idx] = *cur;
delete_flag_ = df;
}