| Index: courgette/adjustment_method.cc
|
| diff --git a/courgette/adjustment_method.cc b/courgette/adjustment_method.cc
|
| index d6718bc8d919add050c364381bd038c3c34d67ee..1306a02fb12bf49c963f013d521b1e9bc51dd9a4 100644
|
| --- a/courgette/adjustment_method.cc
|
| +++ b/courgette/adjustment_method.cc
|
| @@ -14,7 +14,6 @@
|
| #include <string>
|
| #include <vector>
|
|
|
| -#include "base/bind.h"
|
| #include "base/logging.h"
|
| #include "base/macros.h"
|
| #include "base/strings/string_number_conversions.h"
|
| @@ -595,16 +594,10 @@ class GraphAdjuster : public AdjustmentMethod {
|
| private:
|
| void CollectTraces(const AssemblyProgram* program, Trace* abs32, Trace* rel32,
|
| bool is_model) {
|
| - AssemblyProgram::LabelHandler abs32_handler =
|
| - base::Bind(&GraphAdjuster::ReferenceLabel, base::Unretained(this),
|
| - abs32, is_model);
|
| - AssemblyProgram::LabelHandler rel32_handler =
|
| - base::Bind(&GraphAdjuster::ReferenceLabel, base::Unretained(this),
|
| - rel32, is_model);
|
| -
|
| - program->HandleInstructionLabels({{ABS32, abs32_handler},
|
| - {REL32, rel32_handler},
|
| - {REL32ARM, rel32_handler}});
|
| + for (Label* label : program->abs32_label_annotation())
|
| + ReferenceLabel(abs32, is_model, label);
|
| + for (Label* label : program->rel32_label_annotation())
|
| + ReferenceLabel(rel32, is_model, label);
|
|
|
| // TODO(sra): we could simply append all the labels in index order to
|
| // incorporate some costing for entropy (bigger deltas) that will be
|
|
|