-
Notifications
You must be signed in to change notification settings - Fork 14.2k
[DWARFLinker][NFC] Rename libraries to match with directories name. #77592
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DWARFLinker][NFC] Rename libraries to match with directories name. #77592
Conversation
Rename LLVMDWARFLinkerBase library into the LLVMDWARFLinker. Rename LLVMDWARFLinker library into the LLVMDWARFLinkerClassic. Correct include path according to the new directory structure.
@llvm/pr-subscribers-debuginfo Author: None (avl-llvm) ChangesIt was noted that new DWARFLinker libraries do not follow naming agreement - #75925 (comment) This patch rename libraries to match with the agreement. Rename LLVMDWARFLinkerBase library into the LLVMDWARFLinker. Rename LLVMDWARFLinker library into the LLVMDWARFLinkerClassic. Correct include path according to the new directory structure. Full diff: https://github.com/llvm/llvm-project/pull/77592.diff 7 Files Affected:
diff --git a/bolt/lib/Rewrite/CMakeLists.txt b/bolt/lib/Rewrite/CMakeLists.txt
index fb21c13c654b3e..6890f52e2b28bb 100644
--- a/bolt/lib/Rewrite/CMakeLists.txt
+++ b/bolt/lib/Rewrite/CMakeLists.txt
@@ -5,8 +5,8 @@ set(LLVM_LINK_COMPONENTS
MC
Object
Support
- DWARFLinkerBase
DWARFLinker
+ DWARFLinkerClassic
AsmPrinter
TargetParser
)
diff --git a/llvm/lib/DWARFLinker/CMakeLists.txt b/llvm/lib/DWARFLinker/CMakeLists.txt
index 73055a96d4a947..66bbf72165d642 100644
--- a/llvm/lib/DWARFLinker/CMakeLists.txt
+++ b/llvm/lib/DWARFLinker/CMakeLists.txt
@@ -1,4 +1,4 @@
-add_llvm_component_library(LLVMDWARFLinkerBase
+add_llvm_component_library(LLVMDWARFLinker
Utils.cpp
ADDITIONAL_HEADER_DIRS
diff --git a/llvm/lib/DWARFLinker/Classic/CMakeLists.txt b/llvm/lib/DWARFLinker/Classic/CMakeLists.txt
index b173d42eb01539..8865091722b777 100644
--- a/llvm/lib/DWARFLinker/Classic/CMakeLists.txt
+++ b/llvm/lib/DWARFLinker/Classic/CMakeLists.txt
@@ -1,11 +1,11 @@
-add_llvm_component_library(LLVMDWARFLinker
+add_llvm_component_library(LLVMDWARFLinkerClassic
DWARFLinkerCompileUnit.cpp
DWARFLinkerDeclContext.cpp
DWARFLinker.cpp
DWARFStreamer.cpp
ADDITIONAL_HEADER_DIRS
- ${LLVM_MAIN_INCLUDE_DIR}/llvm/DWARFLinker
+ ${LLVM_MAIN_INCLUDE_DIR}/llvm/DWARFLinker/Classic
DEPENDS
intrinsics_gen
@@ -16,7 +16,7 @@ add_llvm_component_library(LLVMDWARFLinker
CodeGen
CodeGenTypes
DebugInfoDWARF
- DWARFLinkerBase
+ DWARFLinker
MC
Object
Support
diff --git a/llvm/lib/DWARFLinker/Parallel/CMakeLists.txt b/llvm/lib/DWARFLinker/Parallel/CMakeLists.txt
index 5d38062975135f..02fbbd6274104a 100644
--- a/llvm/lib/DWARFLinker/Parallel/CMakeLists.txt
+++ b/llvm/lib/DWARFLinker/Parallel/CMakeLists.txt
@@ -12,7 +12,7 @@ add_llvm_component_library(LLVMDWARFLinkerParallel
SyntheticTypeNameBuilder.cpp
ADDITIONAL_HEADER_DIRS
- ${LLVM_MAIN_INCLUDE_DIR}/llvm/DWARFLinkerParallel
+ ${LLVM_MAIN_INCLUDE_DIR}/llvm/DWARFLinker/Parallel
DEPENDS
intrinsics_gen
@@ -22,7 +22,7 @@ add_llvm_component_library(LLVMDWARFLinkerParallel
BinaryFormat
CodeGen
DebugInfoDWARF
- DWARFLinkerBase
+ DWARFLinker
MC
Object
Support
diff --git a/llvm/tools/dsymutil/CMakeLists.txt b/llvm/tools/dsymutil/CMakeLists.txt
index 0e407f6fa1db43..53f882e90b4e92 100644
--- a/llvm/tools/dsymutil/CMakeLists.txt
+++ b/llvm/tools/dsymutil/CMakeLists.txt
@@ -9,8 +9,8 @@ set(LLVM_LINK_COMPONENTS
AsmPrinter
CodeGen
CodeGenTypes
- DWARFLinkerBase
DWARFLinker
+ DWARFLinkerClassic
DWARFLinkerParallel
DebugInfoDWARF
MC
diff --git a/llvm/tools/llvm-dwarfutil/CMakeLists.txt b/llvm/tools/llvm-dwarfutil/CMakeLists.txt
index 91b25207b4f728..23a526782dd7b8 100644
--- a/llvm/tools/llvm-dwarfutil/CMakeLists.txt
+++ b/llvm/tools/llvm-dwarfutil/CMakeLists.txt
@@ -7,8 +7,8 @@ set(LLVM_LINK_COMPONENTS
AllTargetsDescs
AllTargetsInfos
CodeGenTypes
- DWARFLinkerBase
DWARFLinker
+ DWARFLinkerClassic
DWARFLinkerParallel
DebugInfoDWARF
MC
diff --git a/llvm/unittests/DWARFLinkerParallel/CMakeLists.txt b/llvm/unittests/DWARFLinkerParallel/CMakeLists.txt
index 5eeec23df4edba..22c6539f48bfb5 100644
--- a/llvm/unittests/DWARFLinkerParallel/CMakeLists.txt
+++ b/llvm/unittests/DWARFLinkerParallel/CMakeLists.txt
@@ -1,4 +1,5 @@
set(LLVM_LINK_COMPONENTS
+ DWARFLinker
DWARFLinkerParallel
Support
)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! Some optional nits below.
DWARFLinkerCompileUnit.cpp | ||
DWARFLinkerDeclContext.cpp | ||
DWARFLinker.cpp | ||
DWARFStreamer.cpp | ||
|
||
ADDITIONAL_HEADER_DIRS | ||
${LLVM_MAIN_INCLUDE_DIR}/llvm/DWARFLinker | ||
${LLVM_MAIN_INCLUDE_DIR}/llvm/DWARFLinker/Classic |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unrelated; maybe this line isn't needed at all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, will change this and next comment with a separate patch.
@@ -12,7 +12,7 @@ add_llvm_component_library(LLVMDWARFLinkerParallel | |||
SyntheticTypeNameBuilder.cpp | |||
|
|||
ADDITIONAL_HEADER_DIRS | |||
${LLVM_MAIN_INCLUDE_DIR}/llvm/DWARFLinkerParallel | |||
${LLVM_MAIN_INCLUDE_DIR}/llvm/DWARFLinker/Parallel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment – since things worked with the old, wrong, name, maybe we can toss it altogether? (but seems like something for a different pr)
@@ -1,4 +1,5 @@ | |||
set(LLVM_LINK_COMPONENTS | |||
DWARFLinker |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also seems unrelated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is necessary in general even if everything is working currently without DWARFLinker(as LLVMDWARFLinker contains base functionality).
Looks good to me. I'll wait a day for Adrian or Jonas to shout, else I'll hit the merge button tomorrow afternoon, thanks :) |
Thank you for the review! |
…lvm#77592) It was noted that new DWARFLinker libraries do not follow naming agreement - llvm#75925 (comment) This patch rename libraries to match with the agreement. Rename LLVMDWARFLinkerBase library into the LLVMDWARFLinker. Rename LLVMDWARFLinker library into the LLVMDWARFLinkerClassic. Correct include path according to the new directory structure.
…lvm#77592) It was noted that new DWARFLinker libraries do not follow naming agreement - llvm#75925 (comment) This patch rename libraries to match with the agreement. Rename LLVMDWARFLinkerBase library into the LLVMDWARFLinker. Rename LLVMDWARFLinker library into the LLVMDWARFLinkerClassic. Correct include path according to the new directory structure. (cherry picked from commit 35708b0)
It was noted that new DWARFLinker libraries do not follow naming agreement - #75925 (comment) This patch rename libraries to match with the agreement.
Rename LLVMDWARFLinkerBase library into the LLVMDWARFLinker. Rename LLVMDWARFLinker library into the LLVMDWARFLinkerClassic. Correct include path according to the new directory structure.