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 @@ -3,7 +3,6 @@ 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 --- a/llvm/tools/llvm-dwarfutil/llvm-dwarfutil.cpp +++ b/llvm/tools/llvm-dwarfutil/llvm-dwarfutil.cpp @@ -481,7 +481,6 @@ InitializeAllTargetMCs(); InitializeAllTargetInfos(); InitializeAllAsmPrinters(); - InitializeAllAsmParsers(); ErrorOr> BuffOrErr = MemoryBuffer::getFileOrSTDIN(Opts.InputFileName);