diff options
| author | 2016-06-03 12:34:22 +0000 | |
|---|---|---|
| committer | 2016-06-03 12:34:23 +0000 | |
| commit | 4248fc46289f9940aa13d22e4f89abed5e74b169 (patch) | |
| tree | aa72b1443c7ed4ff86eb96468c56071df30c89b8 /compiler/optimizing/pretty_printer.h | |
| parent | f3349b5cc7baa06bdc82d3f55e8e57a7e266b809 (diff) | |
| parent | 372f10e5b0b34e2bb6e2b79aeba6c441e14afd1f (diff) | |
Merge "Refactor handling of input records."
Diffstat (limited to 'compiler/optimizing/pretty_printer.h')
| -rw-r--r-- | compiler/optimizing/pretty_printer.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler/optimizing/pretty_printer.h b/compiler/optimizing/pretty_printer.h index ee32518c01..f9bef6809f 100644 --- a/compiler/optimizing/pretty_printer.h +++ b/compiler/optimizing/pretty_printer.h @@ -39,16 +39,17 @@ class HPrettyPrinter : public HGraphVisitor { } void PrintPostInstruction(HInstruction* instruction) { - if (instruction->InputCount() != 0) { + auto&& inputs = instruction->GetInputs(); + if (!inputs.empty()) { PrintString("("); bool first = true; - for (HInputIterator it(instruction); !it.Done(); it.Advance()) { + for (const HInstruction* input : inputs) { if (first) { first = false; } else { PrintString(", "); } - PrintInt(it.Current()->GetId()); + PrintInt(input->GetId()); } PrintString(")"); } |