From d37f91902048b23ad5fe5b20aba0ebc92e0b4896 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Wed, 4 Mar 2015 14:00:56 -0800 Subject: ART: Do not produce CFI when not asked for Insignificant time savings on the host, but also reduces native allocation size. Change-Id: Iea3d335e5375a0076306059d094e5b994e24b9e6 --- compiler/dex/quick/codegen_util.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'compiler/dex/quick/codegen_util.cc') 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> cfi_info(ReturnFrameDescriptionEntry()); + std::unique_ptr> cfi_info( + cu_->compiler_driver->GetCompilerOptions().GetGenerateGDBInformation() ? + ReturnFrameDescriptionEntry() : + nullptr); ArrayRef cfi_ref; if (cfi_info.get() != nullptr) { cfi_ref = ArrayRef(*cfi_info); -- cgit v1.2.3-59-g8ed1b