David Srbecky | 3b9d57a | 2015-04-10 00:22:14 +0100 | [diff] [blame] | 1 | /* |
| 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 | |
| 24 | namespace art { |
| 25 | namespace dwarf { |
| 26 | |
David Srbecky | 8dc7324 | 2015-04-12 11:40:39 +0100 | [diff] [blame] | 27 | void WriteEhFrame(const CompilerDriver* compiler, |
| 28 | OatWriter* oat_writer, |
| 29 | uint32_t text_section_offset, |
| 30 | std::vector<uint8_t>* eh_frame); |
| 31 | |
David Srbecky | 3b9d57a | 2015-04-10 00:22:14 +0100 | [diff] [blame] | 32 | void WriteDebugSections(const CompilerDriver* compiler, |
David Srbecky | 2f6cdb0 | 2015-04-11 00:17:53 +0100 | [diff] [blame] | 33 | OatWriter* oat_writer, |
David Srbecky | 3b9d57a | 2015-04-10 00:22:14 +0100 | [diff] [blame] | 34 | uint32_t text_section_offset, |
David Srbecky | 8dc7324 | 2015-04-12 11:40:39 +0100 | [diff] [blame] | 35 | 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 Srbecky | 3b9d57a | 2015-04-10 00:22:14 +0100 | [diff] [blame] | 39 | |
| 40 | } // namespace dwarf |
| 41 | } // namespace art |
| 42 | |
| 43 | #endif // ART_COMPILER_ELF_WRITER_DEBUG_H_ |