Path: blob/main/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/ELFLinkGraphBuilder.cpp
35271 views
//=----------- ELFLinkGraphBuilder.cpp - ELF LinkGraph builder ------------===//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//===----------------------------------------------------------------------===//7//8// Generic ELF LinkGraph building code.9//10//===----------------------------------------------------------------------===//1112#include "ELFLinkGraphBuilder.h"1314#define DEBUG_TYPE "jitlink"1516static const char *DWSecNames[] = {17#define HANDLE_DWARF_SECTION(ENUM_NAME, ELF_NAME, CMDLINE_NAME, OPTION) \18ELF_NAME,19#include "llvm/BinaryFormat/Dwarf.def"20#undef HANDLE_DWARF_SECTION21};2223namespace llvm {24namespace jitlink {2526StringRef ELFLinkGraphBuilderBase::CommonSectionName(".common");27ArrayRef<const char *> ELFLinkGraphBuilderBase::DwarfSectionNames = DWSecNames;2829ELFLinkGraphBuilderBase::~ELFLinkGraphBuilderBase() = default;3031} // end namespace jitlink32} // end namespace llvm333435