From 86e4278d5edc3685465b8846dcb17efa83c86d75 Mon Sep 17 00:00:00 2001 From: Tamas Berghammer Date: Tue, 5 Jan 2016 14:29:02 +0000 Subject: Add DWARF type information generation. Emit native debugging information for types which are used during compilation. Change-Id: If28d19f60294494b7c6db8400d179494bebe9e61 --- compiler/elf_writer_debug.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'compiler/elf_writer_debug.h') diff --git a/compiler/elf_writer_debug.h b/compiler/elf_writer_debug.h index 94e09d7ccf..91da00f97a 100644 --- a/compiler/elf_writer_debug.h +++ b/compiler/elf_writer_debug.h @@ -17,20 +17,29 @@ #ifndef ART_COMPILER_ELF_WRITER_DEBUG_H_ #define ART_COMPILER_ELF_WRITER_DEBUG_H_ -#include "elf_builder.h" +#include "base/macros.h" +#include "base/mutex.h" #include "dwarf/dwarf_constants.h" -#include "oat_writer.h" +#include "elf_builder.h" #include "utils/array_ref.h" namespace art { +namespace mirror { +class Class; +} namespace dwarf { +struct MethodDebugInfo; template void WriteDebugInfo(ElfBuilder* builder, + bool write_loaded_runtime_types, const ArrayRef& method_infos, CFIFormat cfi_format); -ArrayRef WriteDebugElfFile(const dwarf::MethodDebugInfo& method_info); +ArrayRef WriteDebugElfFileForMethod(const dwarf::MethodDebugInfo& method_info); + +ArrayRef WriteDebugElfFileForClass(const InstructionSet isa, mirror::Class* type) + SHARED_REQUIRES(Locks::mutator_lock_); } // namespace dwarf } // namespace art -- cgit v1.2.3-59-g8ed1b