1fe6060f1SDimitry Andric //=----------- ELFLinkGraphBuilder.cpp - ELF LinkGraph builder ------------===// 2fe6060f1SDimitry Andric // 3fe6060f1SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4fe6060f1SDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 5fe6060f1SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6fe6060f1SDimitry Andric // 7fe6060f1SDimitry Andric //===----------------------------------------------------------------------===// 8fe6060f1SDimitry Andric // 9*5f757f3fSDimitry Andric // Generic ELF LinkGraph building code. 10fe6060f1SDimitry Andric // 11fe6060f1SDimitry Andric //===----------------------------------------------------------------------===// 12fe6060f1SDimitry Andric 13fe6060f1SDimitry Andric #include "ELFLinkGraphBuilder.h" 14fe6060f1SDimitry Andric 15fe6060f1SDimitry Andric #define DEBUG_TYPE "jitlink" 16fe6060f1SDimitry Andric 17fe6060f1SDimitry Andric static const char *DWSecNames[] = { 18fe6060f1SDimitry Andric #define HANDLE_DWARF_SECTION(ENUM_NAME, ELF_NAME, CMDLINE_NAME, OPTION) \ 19fe6060f1SDimitry Andric ELF_NAME, 20fe6060f1SDimitry Andric #include "llvm/BinaryFormat/Dwarf.def" 21fe6060f1SDimitry Andric #undef HANDLE_DWARF_SECTION 22fe6060f1SDimitry Andric }; 23fe6060f1SDimitry Andric 24fe6060f1SDimitry Andric namespace llvm { 25fe6060f1SDimitry Andric namespace jitlink { 26fe6060f1SDimitry Andric 27fe6060f1SDimitry Andric StringRef ELFLinkGraphBuilderBase::CommonSectionName(".common"); 28fe6060f1SDimitry Andric ArrayRef<const char *> ELFLinkGraphBuilderBase::DwarfSectionNames = DWSecNames; 29fe6060f1SDimitry Andric 3081ad6265SDimitry Andric ELFLinkGraphBuilderBase::~ELFLinkGraphBuilderBase() = default; 31fe6060f1SDimitry Andric 32fe6060f1SDimitry Andric } // end namespace jitlink 33fe6060f1SDimitry Andric } // end namespace llvm 34