2021-06-26 19:27:14 +08:00
|
|
|
//=----------- ELFLinkGraphBuilder.cpp - ELF LinkGraph builder ------------===//
|
|
|
|
//
|
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// Generic ELF LinkGraph buliding code.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "ELFLinkGraphBuilder.h"
|
|
|
|
|
|
|
|
#define DEBUG_TYPE "jitlink"
|
|
|
|
|
2021-06-29 06:59:02 +08:00
|
|
|
static const char *DWSecNames[] = {
|
|
|
|
#define HANDLE_DWARF_SECTION(ENUM_NAME, ELF_NAME, CMDLINE_NAME, OPTION) \
|
|
|
|
ELF_NAME,
|
|
|
|
#include "llvm/BinaryFormat/Dwarf.def"
|
|
|
|
#undef HANDLE_DWARF_SECTION
|
|
|
|
};
|
|
|
|
|
2021-06-26 19:27:14 +08:00
|
|
|
namespace llvm {
|
|
|
|
namespace jitlink {
|
|
|
|
|
2021-06-29 06:59:02 +08:00
|
|
|
StringRef ELFLinkGraphBuilderBase::CommonSectionName(".common");
|
|
|
|
ArrayRef<const char *> ELFLinkGraphBuilderBase::DwarfSectionNames = DWSecNames;
|
|
|
|
|
2022-02-07 14:18:35 +08:00
|
|
|
ELFLinkGraphBuilderBase::~ELFLinkGraphBuilderBase() = default;
|
2021-06-26 19:27:14 +08:00
|
|
|
|
|
|
|
} // end namespace jitlink
|
|
|
|
} // end namespace llvm
|