summaryrefslogtreecommitdiffstats
path: root/compiler/dex/post_opt_passes.h
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/dex/post_opt_passes.h')
-rw-r--r--compiler/dex/post_opt_passes.h20
1 files changed, 3 insertions, 17 deletions
diff --git a/compiler/dex/post_opt_passes.h b/compiler/dex/post_opt_passes.h
index e9fa0eb..1ab8625 100644
--- a/compiler/dex/post_opt_passes.h
+++ b/compiler/dex/post_opt_passes.h
@@ -263,19 +263,12 @@ class PerformInitRegLocations : public PassMEMirSsaRep {
};
/**
- * @class TypeInferencePass
+ * @class TypeInference
* @brief Type inference pass.
*/
-class TypeInferencePass : public PassMEMirSsaRep {
+class TypeInference : public PassMEMirSsaRep {
public:
- TypeInferencePass() : PassMEMirSsaRep("TypeInference", kRepeatingPreOrderDFSTraversal) {
- }
-
- void Start(PassDataHolder* data) const {
- DCHECK(data != nullptr);
- CompilationUnit* c_unit = down_cast<PassMEDataHolder*>(data)->c_unit;
- DCHECK(c_unit != nullptr);
- c_unit->mir_graph->InferTypesStart();
+ TypeInference() : PassMEMirSsaRep("TypeInference", kRepeatingPreOrderDFSTraversal) {
}
bool Worker(PassDataHolder* data) const {
@@ -287,13 +280,6 @@ class TypeInferencePass : public PassMEMirSsaRep {
DCHECK(bb != nullptr);
return c_unit->mir_graph->InferTypes(bb);
}
-
- void End(PassDataHolder* data) const {
- DCHECK(data != nullptr);
- CompilationUnit* c_unit = down_cast<PassMEDataHolder*>(data)->c_unit;
- DCHECK(c_unit != nullptr);
- c_unit->mir_graph.get()->InferTypesEnd();
- }
};
/**