| Index: src/ast.cc
|
| ===================================================================
|
| --- src/ast.cc (revision 668)
|
| +++ src/ast.cc (working copy)
|
| @@ -146,13 +146,13 @@
|
| }
|
|
|
|
|
| -void LabelCollector::AddLabel(Label* label) {
|
| +void TargetCollector::AddTarget(JumpTarget* target) {
|
| // Add the label to the collector, but discard duplicates.
|
| - int length = labels_->length();
|
| + int length = targets_->length();
|
| for (int i = 0; i < length; i++) {
|
| - if (labels_->at(i) == label) return;
|
| + if (targets_->at(i) == target) return;
|
| }
|
| - labels_->Add(label);
|
| + targets_->Add(target);
|
| }
|
|
|
|
|
|
|