diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2020-02-20 14:17:39 +0000 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2020-02-25 11:39:16 +0000 |
commit | ada8536c19e57cbfe55dcb3c72aa95e79365ed21 (patch) | |
tree | 7d9a4d2e3565d106220ac5b2f96933375f5b7ecb /compiler/driver/compiler_options.h | |
parent | b96479447d38e3d1e035d384897cf984516f1c2d (diff) |
If generating an image, run initialization and other optimizations.
The biggest reason for this CL is to ensure a boot image and a boot
image extension always have their conflict tables filled.
Test: test.py
Bug: 149894949
Change-Id: I7bada1b3697322ce78b4f352dec854651c0e995c
Diffstat (limited to 'compiler/driver/compiler_options.h')
-rw-r--r-- | compiler/driver/compiler_options.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/driver/compiler_options.h b/compiler/driver/compiler_options.h index 747205e4e5..79ba1c27c9 100644 --- a/compiler/driver/compiler_options.h +++ b/compiler/driver/compiler_options.h @@ -195,6 +195,10 @@ class CompilerOptions final { return implicit_suspend_checks_; } + bool IsGeneratingImage() const { + return IsBootImage() || IsBootImageExtension() || IsAppImage(); + } + // Are we compiling a boot image? bool IsBootImage() const { return image_type_ == ImageType::kBootImage; |