summaryrefslogtreecommitdiff
path: root/compiler/optimizing/code_generator.cc
diff options
context:
space:
mode:
authorMathew Inwood <mathewi@google.com>2018-08-20 16:42:45 +0100
committerMathew Inwood <mathewi@google.com>2018-08-21 15:15:43 +0100
commitcf6c442f57b92596790c05969cc409c6f7a87c07 (patch)
tree3351da8dae021d7b641021bb7bc0f8be7443dac2 /compiler/optimizing/code_generator.cc
parent20893eef2fe90eef24cc0f7c2f213b10d8515050 (diff)
Refactoring to support more annotation types.
Split the actual annotation handling logic out of AnnotationVisitor, instead delegating to a new AnnotationHandler interface. The visitor now simply takes a map of annotation name to handler, and delegate all the interesting work. Create a new GreylistAnnotationHandler for dealing with the existing @UnsupportedAppUsage annotations. Add support for writing to a whitelist file too, though this is not used yet in this CL. A new parameter --write-whitelist specifies a filename to write this to. Also refactor the tests along similar lines. Bug: 112186571 Test: atest class2greylisttest Change-Id: Ic4da92f3499da7f40f9207ad1776ad79d76464a4
Diffstat (limited to 'compiler/optimizing/code_generator.cc')
0 files changed, 0 insertions, 0 deletions