diff options
author | 2015-09-03 13:33:25 +0000 | |
---|---|---|
committer | 2015-09-03 13:33:25 +0000 | |
commit | 145acc5361deb769eed998f057bc23abaef6e116 (patch) | |
tree | 3d66a0b44e1ac927156eec6e6488de5fd52b982b /compiler/optimizing/pretty_printer.h | |
parent | 91e11c0c840193c6822e66846020b6647de243d5 (diff) |
Revert "Optimizing: Tag basic block allocations with their source."
Reverting so that we can have more discussion about the STL API.
This reverts commit 91e11c0c840193c6822e66846020b6647de243d5.
Change-Id: I187fe52f2c16b6e7c5c9d49c42921eb6c7063dba
Diffstat (limited to 'compiler/optimizing/pretty_printer.h')
-rw-r--r-- | compiler/optimizing/pretty_printer.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/compiler/optimizing/pretty_printer.h b/compiler/optimizing/pretty_printer.h index 34850a564c..934514eeda 100644 --- a/compiler/optimizing/pretty_printer.h +++ b/compiler/optimizing/pretty_printer.h @@ -71,23 +71,23 @@ class HPrettyPrinter : public HGraphVisitor { void VisitBasicBlock(HBasicBlock* block) OVERRIDE { PrintString("BasicBlock "); PrintInt(block->GetBlockId()); - const ArenaVector<HBasicBlock*>& predecessors = block->GetPredecessors(); - if (!predecessors.empty()) { + const GrowableArray<HBasicBlock*>& predecessors = block->GetPredecessors(); + if (!predecessors.IsEmpty()) { PrintString(", pred: "); - for (size_t i = 0; i < predecessors.size() -1; i++) { - PrintInt(predecessors[i]->GetBlockId()); + for (size_t i = 0; i < predecessors.Size() -1; i++) { + PrintInt(predecessors.Get(i)->GetBlockId()); PrintString(", "); } - PrintInt(predecessors.back()->GetBlockId()); + PrintInt(predecessors.Peek()->GetBlockId()); } - const ArenaVector<HBasicBlock*>& successors = block->GetSuccessors(); - if (!successors.empty()) { + const GrowableArray<HBasicBlock*>& successors = block->GetSuccessors(); + if (!successors.IsEmpty()) { PrintString(", succ: "); - for (size_t i = 0; i < successors.size() - 1; i++) { - PrintInt(successors[i]->GetBlockId()); + for (size_t i = 0; i < successors.Size() - 1; i++) { + PrintInt(successors.Get(i)->GetBlockId()); PrintString(", "); } - PrintInt(successors.back()->GetBlockId()); + PrintInt(successors.Peek()->GetBlockId()); } PrintNewLine(); HGraphVisitor::VisitBasicBlock(block); @@ -131,7 +131,7 @@ class StringPrettyPrinter : public HPrettyPrinter { PrintString(" "); PrintInt(gota->GetId()); PrintString(": Goto "); - PrintInt(current_block_->GetSuccessor(0)->GetBlockId()); + PrintInt(current_block_->GetSuccessors().Get(0)->GetBlockId()); PrintNewLine(); } |