14539b441SAlexey Lapshin //===- DebugInfoLinker.h ----------------------------------------*- C++ -*-===// 24539b441SAlexey Lapshin // 34539b441SAlexey Lapshin // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 44539b441SAlexey Lapshin // See https://llvm.org/LICENSE.txt for license information. 54539b441SAlexey Lapshin // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 64539b441SAlexey Lapshin // 74539b441SAlexey Lapshin //===----------------------------------------------------------------------===// 84539b441SAlexey Lapshin 94539b441SAlexey Lapshin #ifndef LLVM_TOOLS_LLVM_DWARFUTIL_DEBUGINFOLINKER_H 104539b441SAlexey Lapshin #define LLVM_TOOLS_LLVM_DWARFUTIL_DEBUGINFOLINKER_H 114539b441SAlexey Lapshin 124539b441SAlexey Lapshin #include "Options.h" 134539b441SAlexey Lapshin #include "llvm/Object/Archive.h" 144539b441SAlexey Lapshin #include "llvm/Object/ELFObjectFile.h" 154539b441SAlexey Lapshin #include "llvm/Object/ObjectFile.h" 164539b441SAlexey Lapshin 174539b441SAlexey Lapshin namespace llvm { 184539b441SAlexey Lapshin namespace dwarfutil { 194539b441SAlexey Lapshin isDebugSection(StringRef SecName)204539b441SAlexey Lapshininline bool isDebugSection(StringRef SecName) { 21*586ecdf2SKazu Hirata return SecName.starts_with(".debug") || SecName.starts_with(".zdebug") || 224539b441SAlexey Lapshin SecName == ".gdb_index"; 234539b441SAlexey Lapshin } 244539b441SAlexey Lapshin 25e74197bcSAlexey Lapshin Error linkDebugInfo(object::ObjectFile &file, const Options &Options, 264539b441SAlexey Lapshin raw_pwrite_stream &OutStream); 274539b441SAlexey Lapshin 284539b441SAlexey Lapshin } // end of namespace dwarfutil 294539b441SAlexey Lapshin } // end of namespace llvm 304539b441SAlexey Lapshin 314539b441SAlexey Lapshin #endif // LLVM_TOOLS_LLVM_DWARFUTIL_DEBUGINFOLINKER_H 32