summaryrefslogtreecommitdiffstats
path: root/compiler/elf_writer_debug.h
diff options
context:
space:
mode:
authorDavid Srbecky <dsrbecky@google.com>2015-04-12 11:40:39 +0100
committerDavid Srbecky <dsrbecky@google.com>2015-04-13 21:24:12 +0100
commit8dc7324da5bd0f2afd2ab558ab04882329a61fe8 (patch)
tree245ce4265cc31990fa6d2f6e792ccd9d44af1dc1 /compiler/elf_writer_debug.h
parent4af290af4e89cfbc3a4e1ada79909ccee353361a (diff)
downloadart-8dc7324da5bd0f2afd2ab558ab04882329a61fe8.zip
art-8dc7324da5bd0f2afd2ab558ab04882329a61fe8.tar.gz
art-8dc7324da5bd0f2afd2ab558ab04882329a61fe8.tar.bz2
Add --include-cfi compiler option.
Decouple generation of CFI from the rest of debug symbols. This makes it possible to generate oat with CFI but without the rest of debug symbols. This is in line with intention of the .eh_frame section. The section does not have the .debug_ prefix because it is considered somewhat different to the rest of debug symbols. Change-Id: I32816ecd4f30ac4e0dc69d69a4993e349c737f96
Diffstat (limited to 'compiler/elf_writer_debug.h')
-rw-r--r--compiler/elf_writer_debug.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/compiler/elf_writer_debug.h b/compiler/elf_writer_debug.h
index 4f1e333..2c03b98 100644
--- a/compiler/elf_writer_debug.h
+++ b/compiler/elf_writer_debug.h
@@ -24,14 +24,18 @@
namespace art {
namespace dwarf {
+void WriteEhFrame(const CompilerDriver* compiler,
+ OatWriter* oat_writer,
+ uint32_t text_section_offset,
+ std::vector<uint8_t>* eh_frame);
+
void WriteDebugSections(const CompilerDriver* compiler,
OatWriter* oat_writer,
uint32_t text_section_offset,
- std::vector<uint8_t>* eh_frame_data,
- std::vector<uint8_t>* debug_info_data,
- std::vector<uint8_t>* debug_abbrev_data,
- std::vector<uint8_t>* debug_str_data,
- std::vector<uint8_t>* debug_line_data);
+ std::vector<uint8_t>* debug_info,
+ std::vector<uint8_t>* debug_abbrev,
+ std::vector<uint8_t>* debug_str,
+ std::vector<uint8_t>* debug_line);
} // namespace dwarf
} // namespace art