[llvm] a920ae3 - [DWARF][dsymutil][llvm-dwarfutil] Create a placeholder library DWARFLinkerParallel.

Alexey Lapshin via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 20 07:37:05 PST 2023


Author: Alexey Lapshin
Date: 2023-01-20T16:36:09+01:00
New Revision: a920ae3b8d1e998317052cd4fad7a78289235af9

URL: https://github.com/llvm/llvm-project/commit/a920ae3b8d1e998317052cd4fad7a78289235af9
DIFF: https://github.com/llvm/llvm-project/commit/a920ae3b8d1e998317052cd4fad7a78289235af9.diff

LOG: [DWARF][dsymutil][llvm-dwarfutil] Create a placeholder library DWARFLinkerParallel.

This patch is extracted from D96035. It creates an empty library DWARFLinkerParallel.

Reviewed By: JDevlieghere

Differential Revision: https://reviews.llvm.org/D140787

Added: 
    llvm/include/llvm/DWARFLinkerParallel/DWARFLinker.h
    llvm/lib/DWARFLinkerParallel/CMakeLists.txt
    llvm/lib/DWARFLinkerParallel/DWARFLinker.cpp
    llvm/unittests/DWARFLinkerParallel/CMakeLists.txt
    llvm/unittests/DWARFLinkerParallel/DWARFLinkerTest.cpp

Modified: 
    llvm/lib/CMakeLists.txt
    llvm/tools/dsymutil/CMakeLists.txt
    llvm/tools/llvm-dwarfutil/CMakeLists.txt
    llvm/unittests/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/DWARFLinkerParallel/DWARFLinker.h b/llvm/include/llvm/DWARFLinkerParallel/DWARFLinker.h
new file mode 100644
index 0000000000000..b1169fdd85412
--- /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
index ea22ff21820a9..283baa6090eb9 100644
--- a/llvm/lib/CMakeLists.txt
+++ b/llvm/lib/CMakeLists.txt
@@ -14,6 +14,7 @@ add_subdirectory(BinaryFormat)
 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
index 0000000000000..298fb9837dfe6
--- /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
index 0000000000000..a54d2e3cc2813
--- /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
index 97d4ef0b32a5c..ae92e3fd62671 100644
--- a/llvm/tools/dsymutil/CMakeLists.txt
+++ b/llvm/tools/dsymutil/CMakeLists.txt
@@ -9,6 +9,7 @@ set(LLVM_LINK_COMPONENTS
   AsmPrinter
   DebugInfoDWARF
   DWARFLinker
+  DWARFLinkerParallel
   MC
   Object
   CodeGen

diff  --git a/llvm/tools/llvm-dwarfutil/CMakeLists.txt b/llvm/tools/llvm-dwarfutil/CMakeLists.txt
index 688d51e375979..42102505c91ca 100644
--- a/llvm/tools/llvm-dwarfutil/CMakeLists.txt
+++ b/llvm/tools/llvm-dwarfutil/CMakeLists.txt
@@ -5,6 +5,7 @@ add_public_tablegen_target(DwarfutilTableGen)
 set(LLVM_LINK_COMPONENTS
   DebugInfoDWARF
   DWARFLinker
+  DWARFLinkerParallel
   MC
   ObjCopy
   Object

diff  --git a/llvm/unittests/CMakeLists.txt b/llvm/unittests/CMakeLists.txt
index eede42a4641c7..46f30ff398e10 100644
--- a/llvm/unittests/CMakeLists.txt
+++ b/llvm/unittests/CMakeLists.txt
@@ -24,6 +24,7 @@ add_subdirectory(CodeGen)
 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
index 0000000000000..e81e09cac738c
--- /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
index 0000000000000..0eb83d4b4fc9b
--- /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
+//
+//===----------------------------------------------------------------------===//


        


More information about the llvm-commits mailing list