diff --git a/llvm/include/llvm/DWARFLinkerNext/DWARFLinker.h b/llvm/include/llvm/DWARFLinkerNext/DWARFLinker.h new file mode 100644 --- /dev/null +++ b/llvm/include/llvm/DWARFLinkerNext/DWARFLinker.h @@ -0,0 +1,16 @@ +//===- DWARFLinker.h --------------------------------------------*- C++ -*-===// +// +// 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 +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_DWARFLINKERNEXT_DWARFLINKER_H +#define LLVM_DWARFLINKERNEXT_DWARFLINKER_H + +namespace llvm { +namespace dwarflinker {} // end namespace dwarflinker +} // end namespace llvm + +#endif // LLVM_DWARFLINKERNEXT_DWARFLINKER_H diff --git a/llvm/lib/CMakeLists.txt b/llvm/lib/CMakeLists.txt --- a/llvm/lib/CMakeLists.txt +++ b/llvm/lib/CMakeLists.txt @@ -14,6 +14,7 @@ add_subdirectory(Bitcode) add_subdirectory(Bitstream) add_subdirectory(DWARFLinker) +add_subdirectory(DWARFLinkerNext) add_subdirectory(Extensions) add_subdirectory(Frontend) add_subdirectory(Transforms) diff --git a/llvm/lib/DWARFLinkerNext/CMakeLists.txt b/llvm/lib/DWARFLinkerNext/CMakeLists.txt new file mode 100644 --- /dev/null +++ b/llvm/lib/DWARFLinkerNext/CMakeLists.txt @@ -0,0 +1,18 @@ +add_llvm_component_library(LLVMDWARFLinkerNext + DWARFLinker.cpp + + ADDITIONAL_HEADER_DIRS + ${LLVM_MAIN_INCLUDE_DIR}/llvm/DWARFLinkerNext + + DEPENDS + intrinsics_gen + + LINK_COMPONENTS + BinaryFormat + DebugInfoDWARF + AsmPrinter + CodeGen + MC + Object + Support +) diff --git a/llvm/lib/DWARFLinkerNext/DWARFLinker.cpp b/llvm/lib/DWARFLinkerNext/DWARFLinker.cpp new file mode 100644 --- /dev/null +++ b/llvm/lib/DWARFLinkerNext/DWARFLinker.cpp @@ -0,0 +1,13 @@ +//=== DWARFLinker.cpp -----------------------------------------------------===// +// +// 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 +// +//===----------------------------------------------------------------------===// + +#include "llvm/DWARFLinkerNext/DWARFLinker.h" + +namespace llvm { +namespace dwarflinker {} // end of namespace dwarflinker +} // namespace llvm diff --git a/llvm/tools/dsymutil/CMakeLists.txt b/llvm/tools/dsymutil/CMakeLists.txt --- a/llvm/tools/dsymutil/CMakeLists.txt +++ b/llvm/tools/dsymutil/CMakeLists.txt @@ -9,6 +9,7 @@ AsmPrinter DebugInfoDWARF DWARFLinker + DWARFLinkerNext MC Object CodeGen diff --git a/llvm/tools/llvm-dwarfutil/CMakeLists.txt b/llvm/tools/llvm-dwarfutil/CMakeLists.txt --- a/llvm/tools/llvm-dwarfutil/CMakeLists.txt +++ b/llvm/tools/llvm-dwarfutil/CMakeLists.txt @@ -5,6 +5,7 @@ set(LLVM_LINK_COMPONENTS DebugInfoDWARF DWARFLinker + DWARFLinkerNext MC ObjCopy Object