ELFLinkGraphBuilder.cpp 1.0 KB

123456789101112131415161718192021222324252627282930313233
  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 buliding code.
  10. //
  11. //===----------------------------------------------------------------------===//
  12. #include "ELFLinkGraphBuilder.h"
  13. #define DEBUG_TYPE "jitlink"
  14. static const char *DWSecNames[] = {
  15. #define HANDLE_DWARF_SECTION(ENUM_NAME, ELF_NAME, CMDLINE_NAME, OPTION) \
  16. ELF_NAME,
  17. #include "llvm/BinaryFormat/Dwarf.def"
  18. #undef HANDLE_DWARF_SECTION
  19. };
  20. namespace llvm {
  21. namespace jitlink {
  22. StringRef ELFLinkGraphBuilderBase::CommonSectionName(".common");
  23. ArrayRef<const char *> ELFLinkGraphBuilderBase::DwarfSectionNames = DWSecNames;
  24. ELFLinkGraphBuilderBase::~ELFLinkGraphBuilderBase() {}
  25. } // end namespace jitlink
  26. } // end namespace llvm