1 //=----------- ELFLinkGraphBuilder.cpp - ELF LinkGraph builder ------------===//
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 //===----------------------------------------------------------------------===//
8 //
9 // Generic ELF LinkGraph building code.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #include "ELFLinkGraphBuilder.h"
14 
15 #define DEBUG_TYPE "jitlink"
16 
17 static const char *DWSecNames[] = {
18 #define HANDLE_DWARF_SECTION(ENUM_NAME, ELF_NAME, CMDLINE_NAME, OPTION)        \
19   ELF_NAME,
20 #include "llvm/BinaryFormat/Dwarf.def"
21 #undef HANDLE_DWARF_SECTION
22 };
23 
24 namespace llvm {
25 namespace jitlink {
26 
27 StringRef ELFLinkGraphBuilderBase::CommonSectionName(".common");
28 ArrayRef<const char *> ELFLinkGraphBuilderBase::DwarfSectionNames = DWSecNames;
29 
30 ELFLinkGraphBuilderBase::~ELFLinkGraphBuilderBase() = default;
31 
32 } // end namespace jitlink
33 } // end namespace llvm
34