blob: 9ed102f91bfb3bce756a560ab0759d8c97ddb859 [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
David Srbecky6d8c8f02015-10-26 10:57:09 +000020#include "elf_builder.h"
David Srbecky527c9c72015-04-17 21:14:10 +010021#include "dwarf/dwarf_constants.h"
David Srbecky3b9d57a2015-04-10 00:22:14 +010022#include "oat_writer.h"
Vladimir Marko10c13562015-11-25 14:33:36 +000023#include "utils/array_ref.h"
David Srbecky3b9d57a2015-04-10 00:22:14 +010024
25namespace art {
26namespace dwarf {
27
David Srbecky6d8c8f02015-10-26 10:57:09 +000028template<typename ElfTypes>
29void WriteCFISection(ElfBuilder<ElfTypes>* builder,
Vladimir Marko10c13562015-11-25 14:33:36 +000030 const ArrayRef<const MethodDebugInfo>& method_infos,
David Srbecky6d8c8f02015-10-26 10:57:09 +000031 CFIFormat format);
David Srbecky8dc73242015-04-12 11:40:39 +010032
David Srbecky6d8c8f02015-10-26 10:57:09 +000033template<typename ElfTypes>
34void WriteDebugSections(ElfBuilder<ElfTypes>* builder,
Vladimir Marko10c13562015-11-25 14:33:36 +000035 const ArrayRef<const MethodDebugInfo>& method_infos);
David Srbecky3b9d57a2015-04-10 00:22:14 +010036
37} // namespace dwarf
38} // namespace art
39
40#endif // ART_COMPILER_ELF_WRITER_DEBUG_H_