Path: blob/main/contrib/llvm-project/llvm/tools/llvm-dwarfutil/DebugInfoLinker.h
35231 views
//===- DebugInfoLinker.h ----------------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLVM_TOOLS_LLVM_DWARFUTIL_DEBUGINFOLINKER_H9#define LLVM_TOOLS_LLVM_DWARFUTIL_DEBUGINFOLINKER_H1011#include "Options.h"12#include "llvm/Object/Archive.h"13#include "llvm/Object/ELFObjectFile.h"14#include "llvm/Object/ObjectFile.h"1516namespace llvm {17namespace dwarfutil {1819inline bool isDebugSection(StringRef SecName) {20return SecName.starts_with(".debug") || SecName.starts_with(".zdebug") ||21SecName == ".gdb_index";22}2324Error linkDebugInfo(object::ObjectFile &file, const Options &Options,25raw_pwrite_stream &OutStream);2627} // end of namespace dwarfutil28} // end of namespace llvm2930#endif // LLVM_TOOLS_LLVM_DWARFUTIL_DEBUGINFOLINKER_H313233