diff options
| author | 2015-03-04 14:00:56 -0800 | |
|---|---|---|
| committer | 2015-03-04 14:55:17 -0800 | |
| commit | d37f91902048b23ad5fe5b20aba0ebc92e0b4896 (patch) | |
| tree | 47dadafacc0ba3c56293713cfb6f43606ea959b9 /compiler/dex/quick/codegen_util.cc | |
| parent | b8fef11aef3732f97ef9192e14c49d4993c26e22 (diff) | |
ART: Do not produce CFI when not asked for
Insignificant time savings on the host, but also reduces native
allocation size.
Change-Id: Iea3d335e5375a0076306059d094e5b994e24b9e6
Diffstat (limited to 'compiler/dex/quick/codegen_util.cc')
| -rw-r--r-- | compiler/dex/quick/codegen_util.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/dex/quick/codegen_util.cc b/compiler/dex/quick/codegen_util.cc index 0be9fd4781..0bac511dd1 100644 --- a/compiler/dex/quick/codegen_util.cc +++ b/compiler/dex/quick/codegen_util.cc @@ -1067,7 +1067,10 @@ CompiledMethod* Mir2Lir::GetCompiledMethod() { return lhs.LiteralOffset() < rhs.LiteralOffset(); }); - std::unique_ptr<std::vector<uint8_t>> cfi_info(ReturnFrameDescriptionEntry()); + std::unique_ptr<std::vector<uint8_t>> cfi_info( + cu_->compiler_driver->GetCompilerOptions().GetGenerateGDBInformation() ? + ReturnFrameDescriptionEntry() : + nullptr); ArrayRef<const uint8_t> cfi_ref; if (cfi_info.get() != nullptr) { cfi_ref = ArrayRef<const uint8_t>(*cfi_info); |