brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 77cb8bb Raw
32 lines · c
1//===- DebugInfoLinker.h ----------------------------------------*- C++ -*-===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLVM_TOOLS_LLVM_DWARFUTIL_DEBUGINFOLINKER_H10#define LLVM_TOOLS_LLVM_DWARFUTIL_DEBUGINFOLINKER_H11 12#include "Options.h"13#include "llvm/Object/Archive.h"14#include "llvm/Object/ELFObjectFile.h"15#include "llvm/Object/ObjectFile.h"16 17namespace llvm {18namespace dwarfutil {19 20inline bool isDebugSection(StringRef SecName) {21  return SecName.starts_with(".debug") || SecName.starts_with(".zdebug") ||22         SecName == ".gdb_index";23}24 25Error linkDebugInfo(object::ObjectFile &file, const Options &Options,26                    raw_pwrite_stream &OutStream);27 28} // end of namespace dwarfutil29} // end of namespace llvm30 31#endif // LLVM_TOOLS_LLVM_DWARFUTIL_DEBUGINFOLINKER_H32