diff options
Diffstat (limited to 'compiler/elf_writer_quick.cc')
-rw-r--r-- | compiler/elf_writer_quick.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/compiler/elf_writer_quick.cc b/compiler/elf_writer_quick.cc index f2a95f2396..05ac21913d 100644 --- a/compiler/elf_writer_quick.cc +++ b/compiler/elf_writer_quick.cc @@ -155,7 +155,12 @@ void ElfWriterQuick<ElfTypes>::WriteDebugInfo( } if (compiler_options_->GetGenerateMiniDebugInfo()) { // Generate only some information and compress it. - dwarf::WriteMiniDebugInfo(builder_.get(), method_infos); + std::vector<uint8_t> xz_elf_file = MakeMiniDebugInfo( + builder_->GetIsa(), + builder_->GetRoData()->GetSize(), + builder_->GetText()->GetSize(), + method_infos); + builder_->WriteSection(".gnu_debugdata", &xz_elf_file); } } |