blob: 2c03b987779aae589b127758c5a9e04da5efc2d5 [file] [log] [blame]
David Srbecky3b9d57a2015-04-10 00:22:14 +01001/*
2 * Copyright (C) 2015 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef ART_COMPILER_ELF_WRITER_DEBUG_H_
18#define ART_COMPILER_ELF_WRITER_DEBUG_H_
19
20#include <vector>
21
22#include "oat_writer.h"
23
24namespace art {
25namespace dwarf {
26
David Srbecky8dc73242015-04-12 11:40:39 +010027void WriteEhFrame(const CompilerDriver* compiler,
28 OatWriter* oat_writer,
29 uint32_t text_section_offset,
30 std::vector<uint8_t>* eh_frame);
31
David Srbecky3b9d57a2015-04-10 00:22:14 +010032void WriteDebugSections(const CompilerDriver* compiler,
David Srbecky2f6cdb02015-04-11 00:17:53 +010033 OatWriter* oat_writer,
David Srbecky3b9d57a2015-04-10 00:22:14 +010034 uint32_t text_section_offset,
David Srbecky8dc73242015-04-12 11:40:39 +010035 std::vector<uint8_t>* debug_info,
36 std::vector<uint8_t>* debug_abbrev,
37 std::vector<uint8_t>* debug_str,
38 std::vector<uint8_t>* debug_line);
David Srbecky3b9d57a2015-04-10 00:22:14 +010039
40} // namespace dwarf
41} // namespace art
42
43#endif // ART_COMPILER_ELF_WRITER_DEBUG_H_