summaryrefslogtreecommitdiffstats
path: root/compiler/dex/pass.h
diff options
context:
space:
mode:
authorVladimir Marko <vmarko@google.com>2014-10-15 11:35:44 +0100
committerVladimir Marko <vmarko@google.com>2014-10-15 11:35:44 +0100
commitaa7b8a329561c6e1f05938ddc5e9c4be795cd8a5 (patch)
treeddef401bac18e2ae346647651f77a64b08d18f9f /compiler/dex/pass.h
parent2df6840f68dd18d7dd8dbf53f8b6181bbfdc4fc4 (diff)
downloadart-aa7b8a329561c6e1f05938ddc5e9c4be795cd8a5.tar.gz
art-aa7b8a329561c6e1f05938ddc5e9c4be795cd8a5.tar.bz2
art-aa7b8a329561c6e1f05938ddc5e9c4be795cd8a5.zip
Quick: Avoid node iteration for passes that don't need it.
Change-Id: Ic1f6796a29ba861cee37a31193e07b497b84eb3f
Diffstat (limited to 'compiler/dex/pass.h')
-rw-r--r--compiler/dex/pass.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/dex/pass.h b/compiler/dex/pass.h
index c377426ed5..e349eed76d 100644
--- a/compiler/dex/pass.h
+++ b/compiler/dex/pass.h
@@ -85,6 +85,9 @@ class Pass {
// Unused parameter.
UNUSED(data);
+ // Passes that do all their work in Start() or End() should not allow useless node iteration.
+ DCHECK(false) << "Unsupported default Worker() used for " << GetName();
+
// BasicBlock did not change.
return false;
}