summaryrefslogtreecommitdiff
path: root/compiler/dex/quick/codegen_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/dex/quick/codegen_util.cc')
-rw-r--r--compiler/dex/quick/codegen_util.cc5
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);