summaryrefslogtreecommitdiff
path: root/compiler/dex/quick/codegen_util.cc
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2015-03-04 23:00:18 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-03-04 23:00:19 +0000
commit18cd8711d0059415dc8a99470fc105279a9ce0c6 (patch)
tree47dadafacc0ba3c56293713cfb6f43606ea959b9 /compiler/dex/quick/codegen_util.cc
parentb8fef11aef3732f97ef9192e14c49d4993c26e22 (diff)
parentd37f91902048b23ad5fe5b20aba0ebc92e0b4896 (diff)
Merge "ART: Do not produce CFI when not asked for"
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);