diff options
author | 2015-03-06 13:55:35 +0000 | |
---|---|---|
committer | 2015-03-06 14:15:57 +0000 | |
commit | 2ed20afc6a1032e9e0cf919cb8d1b2b41e147182 (patch) | |
tree | 169a7bf67d0431922896fe91db3f34a03b786ad7 /compiler/optimizing/pretty_printer.h | |
parent | b341b70b2418922d9b792cdba96d22bece87c55a (diff) |
Opt compiler: Clean the use of `virtual` and `OVERRIDE`.
Change-Id: I806ec522b979334cee8f344fc95e8660c019160a
Diffstat (limited to 'compiler/optimizing/pretty_printer.h')
-rw-r--r-- | compiler/optimizing/pretty_printer.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/compiler/optimizing/pretty_printer.h b/compiler/optimizing/pretty_printer.h index d2a21c8980..934514eeda 100644 --- a/compiler/optimizing/pretty_printer.h +++ b/compiler/optimizing/pretty_printer.h @@ -32,7 +32,7 @@ class HPrettyPrinter : public HGraphVisitor { PrintString(": "); } - virtual void VisitInstruction(HInstruction* instruction) { + void VisitInstruction(HInstruction* instruction) OVERRIDE { PrintPreInstruction(instruction); PrintString(instruction->DebugName()); PrintPostInstruction(instruction); @@ -68,7 +68,7 @@ class HPrettyPrinter : public HGraphVisitor { PrintNewLine(); } - virtual void VisitBasicBlock(HBasicBlock* block) { + void VisitBasicBlock(HBasicBlock* block) OVERRIDE { PrintString("BasicBlock "); PrintInt(block->GetBlockId()); const GrowableArray<HBasicBlock*>& predecessors = block->GetPredecessors(); @@ -106,15 +106,15 @@ class StringPrettyPrinter : public HPrettyPrinter { explicit StringPrettyPrinter(HGraph* graph) : HPrettyPrinter(graph), str_(""), current_block_(nullptr) { } - virtual void PrintInt(int value) { + void PrintInt(int value) OVERRIDE { str_ += StringPrintf("%d", value); } - virtual void PrintString(const char* value) { + void PrintString(const char* value) OVERRIDE { str_ += value; } - virtual void PrintNewLine() { + void PrintNewLine() OVERRIDE { str_ += '\n'; } @@ -122,12 +122,12 @@ class StringPrettyPrinter : public HPrettyPrinter { std::string str() const { return str_; } - virtual void VisitBasicBlock(HBasicBlock* block) { + void VisitBasicBlock(HBasicBlock* block) OVERRIDE { current_block_ = block; HPrettyPrinter::VisitBasicBlock(block); } - virtual void VisitGoto(HGoto* gota) { + void VisitGoto(HGoto* gota) OVERRIDE { PrintString(" "); PrintInt(gota->GetId()); PrintString(": Goto "); |