summaryrefslogtreecommitdiffstats
path: root/compiler/optimizing/graph_checker.h
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2014-10-01 14:59:23 +0000
committerNicolas Geoffray <ngeoffray@google.com>2014-10-01 14:59:23 +0000
commit1ddbf6d4b37979a9f11a203c12befd5ae8b65df4 (patch)
tree2bc48925657e791441aa947d4d629994a0696e78 /compiler/optimizing/graph_checker.h
parentbf9cd7ba2118a75f5aa9b56241c4d5fa00dedeb8 (diff)
downloadart-1ddbf6d4b37979a9f11a203c12befd5ae8b65df4.tar.gz
art-1ddbf6d4b37979a9f11a203c12befd5ae8b65df4.tar.bz2
art-1ddbf6d4b37979a9f11a203c12befd5ae8b65df4.zip
Revert "Introduce a class to implement optimization passes."
This reverts commit bf9cd7ba2118a75f5aa9b56241c4d5fa00dedeb8. Change-Id: I0a483446666c9c24c45925a5fc199debdefd8b3e
Diffstat (limited to 'compiler/optimizing/graph_checker.h')
-rw-r--r--compiler/optimizing/graph_checker.h20
1 files changed, 3 insertions, 17 deletions
diff --git a/compiler/optimizing/graph_checker.h b/compiler/optimizing/graph_checker.h
index 4fb07e0ae4..34a770b5f3 100644
--- a/compiler/optimizing/graph_checker.h
+++ b/compiler/optimizing/graph_checker.h
@@ -19,19 +19,15 @@
#include "nodes.h"
-#include <ostream>
-
namespace art {
// A control-flow graph visitor performing various checks.
class GraphChecker : public HGraphVisitor {
public:
- GraphChecker(ArenaAllocator* allocator, HGraph* graph,
- const char* dump_prefix = "art::GraphChecker: ")
+ GraphChecker(ArenaAllocator* allocator, HGraph* graph)
: HGraphVisitor(graph),
allocator_(allocator),
- errors_(allocator, 0),
- dump_prefix_(dump_prefix) {}
+ errors_(allocator, 0) {}
// Check `block`.
virtual void VisitBasicBlock(HBasicBlock* block) OVERRIDE;
@@ -49,13 +45,6 @@ class GraphChecker : public HGraphVisitor {
return errors_;
}
- // Print detected errors on output stream `os`.
- void Dump(std::ostream& os) {
- for (size_t i = 0, e = errors_.Size(); i < e; ++i) {
- os << dump_prefix_ << errors_.Get(i) << std::endl;
- }
- }
-
protected:
ArenaAllocator* const allocator_;
// The block currently visited.
@@ -64,9 +53,6 @@ class GraphChecker : public HGraphVisitor {
GrowableArray<std::string> errors_;
private:
- // String displayed before dumped errors.
- const char* dump_prefix_;
-
DISALLOW_COPY_AND_ASSIGN(GraphChecker);
};
@@ -77,7 +63,7 @@ class SSAChecker : public GraphChecker {
typedef GraphChecker super_type;
SSAChecker(ArenaAllocator* allocator, HGraph* graph)
- : GraphChecker(allocator, graph, "art::SSAChecker: ") {}
+ : GraphChecker(allocator, graph) {}
// Perform SSA form checks on `block`.
virtual void VisitBasicBlock(HBasicBlock* block) OVERRIDE;