[llvm] 59bb9e3 - [llvm-dwarfutil] Remove unnecessarily dependency.
Alexey Lapshin via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 8 07:13:41 PDT 2022
Author: Alexey Lapshin
Date: 2022-08-08T17:13:05+03:00
New Revision: 59bb9e37c66bfbec6b2f0f7a07516adb6859acc3
URL: https://github.com/llvm/llvm-project/commit/59bb9e37c66bfbec6b2f0f7a07516adb6859acc3
DIFF: https://github.com/llvm/llvm-project/commit/59bb9e37c66bfbec6b2f0f7a07516adb6859acc3.diff
LOG: [llvm-dwarfutil] Remove unnecessarily dependency.
llvm-dwarutil.cpp redundantly calls to InitializeAllAsmParsers.
That call might be removed as well as dependency on ${LLVM_TARGETS_TO_BUILD}
Reviewed By: thakis
Differential Revision: https://reviews.llvm.org/D131157
Added:
Modified:
llvm/tools/llvm-dwarfutil/CMakeLists.txt
llvm/tools/llvm-dwarfutil/llvm-dwarfutil.cpp
Removed:
################################################################################
diff --git a/llvm/tools/llvm-dwarfutil/CMakeLists.txt b/llvm/tools/llvm-dwarfutil/CMakeLists.txt
index d932ff1eff2d0..99af9cd39f5ce 100644
--- a/llvm/tools/llvm-dwarfutil/CMakeLists.txt
+++ b/llvm/tools/llvm-dwarfutil/CMakeLists.txt
@@ -3,7 +3,6 @@ tablegen(LLVM Options.inc -gen-opt-parser-defs)
add_public_tablegen_target(DwarfutilTableGen)
set(LLVM_LINK_COMPONENTS
- ${LLVM_TARGETS_TO_BUILD}
DebugInfoDWARF
DWARFLinker
MC
diff --git a/llvm/tools/llvm-dwarfutil/llvm-dwarfutil.cpp b/llvm/tools/llvm-dwarfutil/llvm-dwarfutil.cpp
index a6466be37513d..c5f5a6a4f863b 100644
--- a/llvm/tools/llvm-dwarfutil/llvm-dwarfutil.cpp
+++ b/llvm/tools/llvm-dwarfutil/llvm-dwarfutil.cpp
@@ -481,7 +481,6 @@ int main(int Argc, char const *Argv[]) {
InitializeAllTargetMCs();
InitializeAllTargetInfos();
InitializeAllAsmPrinters();
- InitializeAllAsmParsers();
ErrorOr<std::unique_ptr<MemoryBuffer>> BuffOrErr =
MemoryBuffer::getFileOrSTDIN(Opts.InputFileName);
More information about the llvm-commits
mailing list