[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / llvm / tools / llvm-dwarfutil / DebugInfoLinker.h
blobd9d99ffc8747da4ebe12ce8a70d2992ec306dcbb
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-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_TOOLS_LLVM_DWARFUTIL_DEBUGINFOLINKER_H
10 #define LLVM_TOOLS_LLVM_DWARFUTIL_DEBUGINFOLINKER_H
12 #include "Options.h"
13 #include "llvm/Object/Archive.h"
14 #include "llvm/Object/ELFObjectFile.h"
15 #include "llvm/Object/ObjectFile.h"
17 namespace llvm {
18 namespace dwarfutil {
20 inline bool isDebugSection(StringRef SecName) {
21 return SecName.startswith(".debug") || SecName.startswith(".zdebug") ||
22 SecName == ".gdb_index";
25 Error linkDebugInfo(object::ObjectFile &file, const Options &Options,
26 raw_pwrite_stream &OutStream);
28 } // end of namespace dwarfutil
29 } // end of namespace llvm
31 #endif // LLVM_TOOLS_LLVM_DWARFUTIL_DEBUGINFOLINKER_H