summaryrefslogtreecommitdiff
path: root/compiler/dex/verification_results.cc
diff options
context:
space:
mode:
author Richard Uhler <ruhler@google.com> 2016-03-18 15:05:30 -0700
committer Richard Uhler <ruhler@google.com> 2016-03-22 15:38:36 -0700
commita62d2f04a6ecf804f8a78e722a6ca8ccb2dfa931 (patch)
treed8624bb85016a3301b473b6503324db4d4cf24a3 /compiler/dex/verification_results.cc
parent48e722432bb6e19df7bba02427e4a707e671af06 (diff)
Use compiler filter to determine oat file status.
Record the compiler filter in the oat header. Use that to determine when the oat file is up-to-date with respect to a target compiler filter level. New xxx-profile filter levels are added to specify if a profile should be used instead of testing for the presence of a profile file. This change should allow for different compiler-filters to be set for different package manager use cases. Bug: 27689078 Change-Id: Id6706d0ed91b45f307142692ea4316aa9713b023
Diffstat (limited to 'compiler/dex/verification_results.cc')
-rw-r--r--compiler/dex/verification_results.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/dex/verification_results.cc b/compiler/dex/verification_results.cc
index dd24220e0e..7c9ce1ee60 100644
--- a/compiler/dex/verification_results.cc
+++ b/compiler/dex/verification_results.cc
@@ -109,7 +109,7 @@ bool VerificationResults::IsCandidateForCompilation(MethodReference&,
return false;
}
// Don't compile class initializers unless kEverything.
- if ((compiler_options_->GetCompilerFilter() != CompilerOptions::kEverything) &&
+ if ((compiler_options_->GetCompilerFilter() != CompilerFilter::kEverything) &&
((access_flags & kAccConstructor) != 0) && ((access_flags & kAccStatic) != 0)) {
return false;
}