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