diff --git a/llvm/include/llvm/DWARFLinkerParallel/DWARFLinker.h b/llvm/include/llvm/DWARFLinkerParallel/DWARFLinker.h new file mode 100644 --- /dev/null +++ b/llvm/include/llvm/DWARFLinkerParallel/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_DWARFLINKERPARALLEL_DWARFLINKER_H +#define LLVM_DWARFLINKERPARALLEL_DWARFLINKER_H + +namespace llvm { +namespace dwarflinker_parallel {} // end namespace dwarflinker_parallel +} // end namespace llvm + +#endif // LLVM_DWARFLINKERPARALLEL_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(DWARFLinkerParallel) add_subdirectory(Extensions) add_subdirectory(Frontend) add_subdirectory(Transforms) diff --git a/llvm/lib/DWARFLinkerParallel/CMakeLists.txt b/llvm/lib/DWARFLinkerParallel/CMakeLists.txt new file mode 100644 --- /dev/null +++ b/llvm/lib/DWARFLinkerParallel/CMakeLists.txt @@ -0,0 +1,18 @@ +add_llvm_component_library(LLVMDWARFLinkerParallel + DWARFLinker.cpp + + ADDITIONAL_HEADER_DIRS + ${LLVM_MAIN_INCLUDE_DIR}/llvm/DWARFLinkerParallel + + DEPENDS + intrinsics_gen + + LINK_COMPONENTS + BinaryFormat + DebugInfoDWARF + AsmPrinter + CodeGen + MC + Object + Support +) diff --git a/llvm/lib/DWARFLinkerParallel/DWARFLinker.cpp b/llvm/lib/DWARFLinkerParallel/DWARFLinker.cpp new file mode 100644 --- /dev/null +++ b/llvm/lib/DWARFLinkerParallel/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/DWARFLinkerParallel/DWARFLinker.h" + +namespace llvm { +namespace dwarflinker_parallel {} // end of namespace dwarflinker_parallel +} // 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 + DWARFLinkerParallel 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 + DWARFLinkerParallel MC ObjCopy Object diff --git a/llvm/unittests/CMakeLists.txt b/llvm/unittests/CMakeLists.txt --- a/llvm/unittests/CMakeLists.txt +++ b/llvm/unittests/CMakeLists.txt @@ -24,6 +24,7 @@ add_subdirectory(DebugInfo) add_subdirectory(Debuginfod) add_subdirectory(Demangle) +add_subdirectory(DWARFLinkerParallel) add_subdirectory(ExecutionEngine) add_subdirectory(FileCheck) add_subdirectory(Frontend) diff --git a/llvm/unittests/DWARFLinkerParallel/CMakeLists.txt b/llvm/unittests/DWARFLinkerParallel/CMakeLists.txt new file mode 100644 --- /dev/null +++ b/llvm/unittests/DWARFLinkerParallel/CMakeLists.txt @@ -0,0 +1,12 @@ +set(LLVM_LINK_COMPONENTS + Support + DWARFLinkerParallel + ) + +add_llvm_unittest(DWARFLinkerParallelTests + DWARFLinkerTest.cpp + ) + +target_link_libraries(DWARFLinkerParallelTests PRIVATE LLVMTestingSupport) + +add_dependencies(DWARFLinkerParallelTests intrinsics_gen) diff --git a/llvm/unittests/DWARFLinkerParallel/DWARFLinkerTest.cpp b/llvm/unittests/DWARFLinkerParallel/DWARFLinkerTest.cpp new file mode 100644 --- /dev/null +++ b/llvm/unittests/DWARFLinkerParallel/DWARFLinkerTest.cpp @@ -0,0 +1,7 @@ +//===- llvm/unittest/DWARFLinkerParallel/DWARFLinkerTest.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 +// +//===----------------------------------------------------------------------===//