diff options
author | David Srbecky <dsrbecky@google.com> | 2015-04-12 11:40:39 +0100 |
---|---|---|
committer | David Srbecky <dsrbecky@google.com> | 2015-04-13 21:24:12 +0100 |
commit | 8dc7324da5bd0f2afd2ab558ab04882329a61fe8 (patch) | |
tree | 245ce4265cc31990fa6d2f6e792ccd9d44af1dc1 /compiler/driver | |
parent | 4af290af4e89cfbc3a4e1ada79909ccee353361a (diff) | |
download | art-8dc7324da5bd0f2afd2ab558ab04882329a61fe8.zip art-8dc7324da5bd0f2afd2ab558ab04882329a61fe8.tar.gz art-8dc7324da5bd0f2afd2ab558ab04882329a61fe8.tar.bz2 |
Add --include-cfi compiler option.
Decouple generation of CFI from the rest of debug symbols.
This makes it possible to generate oat with CFI but without
the rest of debug symbols.
This is in line with intention of the .eh_frame section.
The section does not have the .debug_ prefix because it
is considered somewhat different to the rest of debug symbols.
Change-Id: I32816ecd4f30ac4e0dc69d69a4993e349c737f96
Diffstat (limited to 'compiler/driver')
-rw-r--r-- | compiler/driver/compiler_options.cc | 3 | ||||
-rw-r--r-- | compiler/driver/compiler_options.h | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/compiler/driver/compiler_options.cc b/compiler/driver/compiler_options.cc index de1f958..c5fc98a 100644 --- a/compiler/driver/compiler_options.cc +++ b/compiler/driver/compiler_options.cc @@ -31,6 +31,7 @@ CompilerOptions::CompilerOptions() top_k_profile_threshold_(kDefaultTopKProfileThreshold), debuggable_(false), include_debug_symbols_(kDefaultIncludeDebugSymbols), + include_cfi_(false), implicit_null_checks_(true), implicit_so_checks_(true), implicit_suspend_checks_(false), @@ -56,6 +57,7 @@ CompilerOptions::CompilerOptions(CompilerFilter compiler_filter, double top_k_profile_threshold, bool debuggable, bool include_debug_symbols, + bool include_cfi, bool implicit_null_checks, bool implicit_so_checks, bool implicit_suspend_checks, @@ -75,6 +77,7 @@ CompilerOptions::CompilerOptions(CompilerFilter compiler_filter, top_k_profile_threshold_(top_k_profile_threshold), debuggable_(debuggable), include_debug_symbols_(include_debug_symbols), + include_cfi_(include_cfi), implicit_null_checks_(implicit_null_checks), implicit_so_checks_(implicit_so_checks), implicit_suspend_checks_(implicit_suspend_checks), diff --git a/compiler/driver/compiler_options.h b/compiler/driver/compiler_options.h index aa0db5d..bf3f8ec 100644 --- a/compiler/driver/compiler_options.h +++ b/compiler/driver/compiler_options.h @@ -65,6 +65,7 @@ class CompilerOptions FINAL { double top_k_profile_threshold, bool debuggable, bool include_debug_symbols, + bool include_cfi, bool implicit_null_checks, bool implicit_so_checks, bool implicit_suspend_checks, @@ -149,6 +150,11 @@ class CompilerOptions FINAL { return include_debug_symbols_; } + bool GetIncludeCFI() const { + // include-debug-symbols implies include-cfi. + return include_cfi_ || include_debug_symbols_; + } + bool GetImplicitNullChecks() const { return implicit_null_checks_; } @@ -207,6 +213,7 @@ class CompilerOptions FINAL { const double top_k_profile_threshold_; const bool debuggable_; const bool include_debug_symbols_; + const bool include_cfi_; const bool implicit_null_checks_; const bool implicit_so_checks_; const bool implicit_suspend_checks_; |