summaryrefslogtreecommitdiff
path: root/compiler/elf_writer_debug.h
diff options
context:
space:
mode:
author David Srbecky <dsrbecky@google.com> 2016-02-05 09:40:10 +0000
committer David Srbecky <dsrbecky@google.com> 2016-02-05 11:29:14 +0000
commitae5d2738a2b941b543c3fd478af910d4cd16f2ba (patch)
treea198a7b0449c00938a35d013270d0db8bba197c9 /compiler/elf_writer_debug.h
parentac6a195ec8e1b5a7a6bd3d0c53d8997ff7a5e2cc (diff)
Change the method which generates DWARF mini-debug-info.
This splits some code from CL198651. It moves the WriteSection call out one level and does not otherwise change behaviour. Change-Id: I7dc1c7c08b577b50bf6fa366a9b0ca757048b81e
Diffstat (limited to 'compiler/elf_writer_debug.h')
-rw-r--r--compiler/elf_writer_debug.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler/elf_writer_debug.h b/compiler/elf_writer_debug.h
index 8e8472f678..e289197971 100644
--- a/compiler/elf_writer_debug.h
+++ b/compiler/elf_writer_debug.h
@@ -36,9 +36,10 @@ void WriteDebugInfo(ElfBuilder<ElfTypes>* builder,
CFIFormat cfi_format,
bool write_oat_patches);
-template <typename ElfTypes>
-void WriteMiniDebugInfo(ElfBuilder<ElfTypes>* builder,
- const ArrayRef<const MethodDebugInfo>& method_infos);
+std::vector<uint8_t> MakeMiniDebugInfo(InstructionSet isa,
+ size_t rodata_section_size,
+ size_t text_section_size,
+ const ArrayRef<const MethodDebugInfo>& method_infos);
ArrayRef<const uint8_t> WriteDebugElfFileForMethod(const dwarf::MethodDebugInfo& method_info);