diff options
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; |