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 | |
David Srbecky | 6d8c8f0 | 2015-10-26 10:57:09 +0000 | [diff] [blame] | 22 | #include "elf_builder.h" |
David Srbecky | 527c9c7 | 2015-04-17 21:14:10 +0100 | [diff] [blame] | 23 | #include "dwarf/dwarf_constants.h" |
David Srbecky | 3b9d57a | 2015-04-10 00:22:14 +0100 | [diff] [blame] | 24 | #include "oat_writer.h" |
| 25 | |
| 26 | namespace art { |
| 27 | namespace dwarf { |
| 28 | |
David Srbecky | 6d8c8f0 | 2015-10-26 10:57:09 +0000 | [diff] [blame] | 29 | template<typename ElfTypes> |
| 30 | void WriteCFISection(ElfBuilder<ElfTypes>* builder, |
| 31 | const std::vector<OatWriter::DebugInfo>& method_infos, |
| 32 | CFIFormat format); |
David Srbecky | 8dc7324 | 2015-04-12 11:40:39 +0100 | [diff] [blame] | 33 | |
David Srbecky | 6d8c8f0 | 2015-10-26 10:57:09 +0000 | [diff] [blame] | 34 | template<typename ElfTypes> |
| 35 | void WriteDebugSections(ElfBuilder<ElfTypes>* builder, |
| 36 | const std::vector<OatWriter::DebugInfo>& method_infos); |
David Srbecky | 3b9d57a | 2015-04-10 00:22:14 +0100 | [diff] [blame] | 37 | |
| 38 | } // namespace dwarf |
| 39 | } // namespace art |
| 40 | |
| 41 | #endif // ART_COMPILER_ELF_WRITER_DEBUG_H_ |