aboutsummaryrefslogtreecommitdiff
path: root/lld
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2020-01-17 20:27:24 +0000
committerDimitry Andric <dim@FreeBSD.org>2020-01-17 20:27:24 +0000
commit7cc9cf2bf09f069cb2dd947ead05d0b54301fb71 (patch)
tree2bac2b35d5d597aa34805cb4b4b2644599b58f6a /lld
parentc80d8fac37703ecdd2c24b90267e62ce8e9b4ea5 (diff)
downloadsrc-7cc9cf2bf09f069cb2dd947ead05d0b54301fb71.tar.gz
src-7cc9cf2bf09f069cb2dd947ead05d0b54301fb71.zip
Remove files from vendor/llvm-project/master which are unused, and never
merged to contrib.
Notes
Notes: svn path=/vendor/llvm-project/master/; revision=356841
Diffstat (limited to 'lld')
-rw-r--r--lld/CMakeLists.txt225
-rw-r--r--lld/COFF/CMakeLists.txt50
-rw-r--r--lld/Common/CMakeLists.txt62
-rw-r--r--lld/ELF/CMakeLists.txt68
-rw-r--r--lld/docs/CMakeLists.txt8
-rw-r--r--lld/lib/CMakeLists.txt3
-rw-r--r--lld/lib/Core/CMakeLists.txt28
-rw-r--r--lld/lib/Driver/CMakeLists.txt23
-rw-r--r--lld/lib/ReaderWriter/CMakeLists.txt20
-rw-r--r--lld/lib/ReaderWriter/MachO/CMakeLists.txt35
-rw-r--r--lld/lib/ReaderWriter/YAML/CMakeLists.txt9
-rw-r--r--lld/tools/lld/CMakeLists.txt28
12 files changed, 0 insertions, 559 deletions
diff --git a/lld/CMakeLists.txt b/lld/CMakeLists.txt
deleted file mode 100644
index 641f71c114ae..000000000000
--- a/lld/CMakeLists.txt
+++ /dev/null
@@ -1,225 +0,0 @@
-# Check if lld is built as a standalone project.
-if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
- project(lld)
- cmake_minimum_required(VERSION 3.4.3)
-
- set(CMAKE_INCLUDE_CURRENT_DIR ON)
- set(LLD_BUILT_STANDALONE TRUE)
-
- find_program(LLVM_CONFIG_PATH "llvm-config" DOC "Path to llvm-config binary")
- if(NOT LLVM_CONFIG_PATH)
- message(FATAL_ERROR "llvm-config not found: specify LLVM_CONFIG_PATH")
- endif()
-
- execute_process(COMMAND "${LLVM_CONFIG_PATH}"
- "--obj-root"
- "--includedir"
- "--cmakedir"
- "--src-root"
- RESULT_VARIABLE HAD_ERROR
- OUTPUT_VARIABLE LLVM_CONFIG_OUTPUT
- OUTPUT_STRIP_TRAILING_WHITESPACE)
- if(HAD_ERROR)
- message(FATAL_ERROR "llvm-config failed with status ${HAD_ERROR}")
- endif()
-
- string(REGEX REPLACE "[ \t]*[\r\n]+[ \t]*" ";" LLVM_CONFIG_OUTPUT "${LLVM_CONFIG_OUTPUT}")
-
- list(GET LLVM_CONFIG_OUTPUT 0 OBJ_ROOT)
- list(GET LLVM_CONFIG_OUTPUT 1 MAIN_INCLUDE_DIR)
- list(GET LLVM_CONFIG_OUTPUT 2 LLVM_CMAKE_PATH)
- list(GET LLVM_CONFIG_OUTPUT 3 MAIN_SRC_DIR)
-
- set(LLVM_OBJ_ROOT ${OBJ_ROOT} CACHE PATH "path to LLVM build tree")
- set(LLVM_MAIN_INCLUDE_DIR ${MAIN_INCLUDE_DIR} CACHE PATH "path to llvm/include")
- set(LLVM_MAIN_SRC_DIR ${MAIN_SRC_DIR} CACHE PATH "Path to LLVM source tree")
-
- file(TO_CMAKE_PATH ${LLVM_OBJ_ROOT} LLVM_BINARY_DIR)
-
- if(NOT EXISTS "${LLVM_CMAKE_PATH}/LLVMConfig.cmake")
- message(FATAL_ERROR "LLVMConfig.cmake not found")
- endif()
- include("${LLVM_CMAKE_PATH}/LLVMConfig.cmake")
-
- list(APPEND CMAKE_MODULE_PATH "${LLVM_CMAKE_PATH}")
-
- set(PACKAGE_VERSION "${LLVM_PACKAGE_VERSION}")
- include_directories("${LLVM_BINARY_DIR}/include" ${LLVM_INCLUDE_DIRS})
- link_directories(${LLVM_LIBRARY_DIRS})
-
- set(LLVM_LIBRARY_OUTPUT_INTDIR ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/lib${LLVM_LIBDIR_SUFFIX})
- set(LLVM_RUNTIME_OUTPUT_INTDIR ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/bin)
- find_program(LLVM_TABLEGEN_EXE "llvm-tblgen" ${LLVM_TOOLS_BINARY_DIR} NO_DEFAULT_PATH)
-
- include(AddLLVM)
- include(TableGen)
- include(HandleLLVMOptions)
-
- if(LLVM_INCLUDE_TESTS)
- include(FindPythonInterp)
- if(NOT PYTHONINTERP_FOUND)
- message(FATAL_ERROR
-"Unable to find Python interpreter, required for testing.
-
-Please install Python or specify the PYTHON_EXECUTABLE CMake variable.")
- endif()
-
- if(${PYTHON_VERSION_STRING} VERSION_LESS 2.7)
- message(FATAL_ERROR "Python 2.7 or newer is required")
- endif()
-
- # Check prebuilt llvm/utils.
- if(EXISTS ${LLVM_TOOLS_BINARY_DIR}/FileCheck${CMAKE_EXECUTABLE_SUFFIX}
- AND EXISTS ${LLVM_TOOLS_BINARY_DIR}/not${CMAKE_EXECUTABLE_SUFFIX})
- set(LLVM_UTILS_PROVIDED ON)
- endif()
-
- if(EXISTS ${LLVM_MAIN_SRC_DIR}/utils/lit/lit.py)
- # Note: path not really used, except for checking if lit was found
- set(LLVM_LIT ${LLVM_MAIN_SRC_DIR}/utils/lit/lit.py)
- if(NOT LLVM_UTILS_PROVIDED)
- add_subdirectory(${LLVM_MAIN_SRC_DIR}/utils/FileCheck utils/FileCheck)
- add_subdirectory(${LLVM_MAIN_SRC_DIR}/utils/not utils/not)
- set(LLVM_UTILS_PROVIDED ON)
- set(LLD_TEST_DEPS FileCheck not)
- endif()
- set(UNITTEST_DIR ${LLVM_MAIN_SRC_DIR}/utils/unittest)
- if(EXISTS ${UNITTEST_DIR}/googletest/include/gtest/gtest.h
- AND NOT EXISTS ${LLVM_LIBRARY_DIR}/${CMAKE_STATIC_LIBRARY_PREFIX}gtest${CMAKE_STATIC_LIBRARY_SUFFIX}
- AND EXISTS ${UNITTEST_DIR}/CMakeLists.txt)
- add_subdirectory(${UNITTEST_DIR} utils/unittest)
- endif()
- else()
- # Seek installed Lit.
- find_program(LLVM_LIT
- NAMES llvm-lit lit.py lit
- PATHS "${LLVM_MAIN_SRC_DIR}/utils/lit"
- DOC "Path to lit.py")
- endif()
-
- if(LLVM_LIT)
- # Define the default arguments to use with 'lit', and an option for the user
- # to override.
- set(LIT_ARGS_DEFAULT "-sv")
- if (MSVC OR XCODE)
- set(LIT_ARGS_DEFAULT "${LIT_ARGS_DEFAULT} --no-progress-bar")
- endif()
- set(LLVM_LIT_ARGS "${LIT_ARGS_DEFAULT}" CACHE STRING "Default options for lit")
-
- # On Win32 hosts, provide an option to specify the path to the GnuWin32 tools.
- if(WIN32 AND NOT CYGWIN)
- set(LLVM_LIT_TOOLS_DIR "" CACHE PATH "Path to GnuWin32 tools")
- endif()
- else()
- set(LLVM_INCLUDE_TESTS OFF)
- endif()
- endif()
-endif()
-
-set(LLD_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
-set(LLD_INCLUDE_DIR ${LLD_SOURCE_DIR}/include )
-set(LLD_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
-
-# Compute the LLD version from the LLVM version.
-string(REGEX MATCH "[0-9]+\\.[0-9]+(\\.[0-9]+)?" LLD_VERSION
- ${PACKAGE_VERSION})
-message(STATUS "LLD version: ${LLD_VERSION}")
-
-string(REGEX REPLACE "([0-9]+)\\.[0-9]+(\\.[0-9]+)?" "\\1" LLD_VERSION_MAJOR
- ${LLD_VERSION})
-string(REGEX REPLACE "[0-9]+\\.([0-9]+)(\\.[0-9]+)?" "\\1" LLD_VERSION_MINOR
- ${LLD_VERSION})
-
-# Determine LLD revision and repository.
-# TODO: Figure out a way to get the revision and the repository on windows.
-if ( NOT CMAKE_SYSTEM_NAME MATCHES "Windows" )
- execute_process(COMMAND ${CMAKE_SOURCE_DIR}/utils/GetSourceVersion ${LLD_SOURCE_DIR}
- OUTPUT_VARIABLE LLD_REVISION)
-
- execute_process(COMMAND ${CMAKE_SOURCE_DIR}/utils/GetRepositoryPath ${LLD_SOURCE_DIR}
- OUTPUT_VARIABLE LLD_REPOSITORY)
- if ( LLD_REPOSITORY )
- # Replace newline characters with spaces
- string(REGEX REPLACE "(\r?\n)+" " " LLD_REPOSITORY ${LLD_REPOSITORY})
- # Remove leading spaces
- STRING(REGEX REPLACE "^[ \t\r\n]+" "" LLD_REPOSITORY "${LLD_REPOSITORY}" )
- # Remove trailing spaces
- string(REGEX REPLACE "(\ )+$" "" LLD_REPOSITORY ${LLD_REPOSITORY})
- endif()
-
- if ( LLD_REVISION )
- # Replace newline characters with spaces
- string(REGEX REPLACE "(\r?\n)+" " " LLD_REVISION ${LLD_REVISION})
- # Remove leading spaces
- STRING(REGEX REPLACE "^[ \t\r\n]+" "" LLD_REVISION "${LLD_REVISION}" )
- # Remove trailing spaces
- string(REGEX REPLACE "(\ )+$" "" LLD_REVISION ${LLD_REVISION})
- endif()
-endif ()
-
-# Configure the Version.inc file.
-configure_file(
- ${CMAKE_CURRENT_SOURCE_DIR}/include/lld/Common/Version.inc.in
- ${CMAKE_CURRENT_BINARY_DIR}/include/lld/Common/Version.inc)
-
-
-if (CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
- message(FATAL_ERROR "In-source builds are not allowed. CMake would overwrite "
-"the makefiles distributed with LLVM. Please create a directory and run cmake "
-"from there, passing the path to this source directory as the last argument. "
-"This process created the file `CMakeCache.txt' and the directory "
-"`CMakeFiles'. Please delete them.")
-endif()
-
-list (APPEND CMAKE_MODULE_PATH "${LLD_SOURCE_DIR}/cmake/modules")
-
-include(AddLLD)
-
-option(LLD_USE_VTUNE
- "Enable VTune user task tracking."
- OFF)
-if (LLD_USE_VTUNE)
- find_package(VTune)
- if (VTUNE_FOUND)
- include_directories(${VTune_INCLUDE_DIRS})
- list(APPEND LLVM_COMMON_LIBS ${VTune_LIBRARIES})
- add_definitions(-DLLD_HAS_VTUNE)
- endif()
-endif()
-
-option(LLD_BUILD_TOOLS
- "Build the lld tools. If OFF, just generate build targets." ON)
-
-if (MSVC)
- add_definitions(-wd4530) # Suppress 'warning C4530: C++ exception handler used, but unwind semantics are not enabled.'
- add_definitions(-wd4062) # Suppress 'warning C4062: enumerator X in switch of enum Y is not handled' from system header.
-endif()
-
-include_directories(BEFORE
- ${CMAKE_CURRENT_BINARY_DIR}/include
- ${CMAKE_CURRENT_SOURCE_DIR}/include
- )
-
-if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
- install(DIRECTORY include/
- DESTINATION include
- FILES_MATCHING
- PATTERN "*.h"
- PATTERN ".svn" EXCLUDE
- )
-endif()
-
-add_subdirectory(Common)
-add_subdirectory(lib)
-add_subdirectory(tools/lld)
-
-if (LLVM_INCLUDE_TESTS)
- add_subdirectory(test)
- add_subdirectory(unittests)
-endif()
-
-add_subdirectory(docs)
-add_subdirectory(COFF)
-add_subdirectory(ELF)
-add_subdirectory(MinGW)
-add_subdirectory(wasm)
diff --git a/lld/COFF/CMakeLists.txt b/lld/COFF/CMakeLists.txt
deleted file mode 100644
index 7c5e8b79b7fe..000000000000
--- a/lld/COFF/CMakeLists.txt
+++ /dev/null
@@ -1,50 +0,0 @@
-set(LLVM_TARGET_DEFINITIONS Options.td)
-tablegen(LLVM Options.inc -gen-opt-parser-defs)
-add_public_tablegen_target(COFFOptionsTableGen)
-
-if(NOT LLD_BUILT_STANDALONE)
- set(tablegen_deps intrinsics_gen)
-endif()
-
-add_lld_library(lldCOFF
- Chunks.cpp
- DebugTypes.cpp
- DLL.cpp
- Driver.cpp
- DriverUtils.cpp
- ICF.cpp
- InputFiles.cpp
- LTO.cpp
- MapFile.cpp
- MarkLive.cpp
- MinGW.cpp
- PDB.cpp
- SymbolTable.cpp
- Symbols.cpp
- Writer.cpp
-
- LINK_COMPONENTS
- ${LLVM_TARGETS_TO_BUILD}
- BinaryFormat
- Core
- DebugInfoCodeView
- DebugInfoDWARF
- DebugInfoMSF
- DebugInfoPDB
- Demangle
- LibDriver
- LTO
- MC
- Object
- Option
- Support
- WindowsManifest
-
- LINK_LIBS
- lldCommon
- ${LLVM_PTHREAD_LIB}
-
- DEPENDS
- COFFOptionsTableGen
- ${tablegen_deps}
- )
diff --git a/lld/Common/CMakeLists.txt b/lld/Common/CMakeLists.txt
deleted file mode 100644
index 1a04a8074bed..000000000000
--- a/lld/Common/CMakeLists.txt
+++ /dev/null
@@ -1,62 +0,0 @@
-if(NOT LLD_BUILT_STANDALONE)
- set(tablegen_deps intrinsics_gen)
-endif()
-
-find_first_existing_vc_file("${LLVM_MAIN_SRC_DIR}" llvm_vc)
-find_first_existing_vc_file("${LLD_SOURCE_DIR}" lld_vc)
-
-set(version_inc "${CMAKE_CURRENT_BINARY_DIR}/VCSVersion.inc")
-set(generate_vcs_version_script "${LLVM_CMAKE_PATH}/GenerateVersionFromVCS.cmake")
-
-if(lld_vc)
- set(lld_source_dir ${LLD_SOURCE_DIR})
-endif()
-
-add_custom_command(OUTPUT "${version_inc}"
- DEPENDS "${lld_vc}" "${generate_vcs_version_script}"
- COMMAND ${CMAKE_COMMAND} "-DNAMES=LLD"
- "-DLLD_SOURCE_DIR=${LLD_SOURCE_DIR}"
- "-DHEADER_FILE=${version_inc}"
- -P "${generate_vcs_version_script}")
-
-# Mark the generated header as being generated.
-set_source_files_properties("${version_inc}"
- PROPERTIES GENERATED TRUE
- HEADER_FILE_ONLY TRUE)
-
-set_property(SOURCE Version.cpp APPEND PROPERTY
- COMPILE_DEFINITIONS "HAVE_VCS_VERSION_INC")
-
-add_lld_library(lldCommon
- Args.cpp
- DWARF.cpp
- ErrorHandler.cpp
- Filesystem.cpp
- Memory.cpp
- Reproduce.cpp
- Strings.cpp
- TargetOptionsCommandFlags.cpp
- Threads.cpp
- Timer.cpp
- VCSVersion.inc
- Version.cpp
-
- ADDITIONAL_HEADER_DIRS
- ${LLD_INCLUDE_DIR}/lld/Common
-
- LINK_COMPONENTS
- Codegen
- Core
- DebugInfoDWARF
- Demangle
- MC
- Option
- Support
- Target
-
- LINK_LIBS
- ${LLVM_PTHREAD_LIB}
-
- DEPENDS
- ${tablegen_deps}
- )
diff --git a/lld/ELF/CMakeLists.txt b/lld/ELF/CMakeLists.txt
deleted file mode 100644
index 1ba79bec73df..000000000000
--- a/lld/ELF/CMakeLists.txt
+++ /dev/null
@@ -1,68 +0,0 @@
-set(LLVM_TARGET_DEFINITIONS Options.td)
-tablegen(LLVM Options.inc -gen-opt-parser-defs)
-add_public_tablegen_target(ELFOptionsTableGen)
-
-if(NOT LLD_BUILT_STANDALONE)
- set(tablegen_deps intrinsics_gen)
-endif()
-
-add_lld_library(lldELF
- AArch64ErrataFix.cpp
- Arch/AArch64.cpp
- Arch/AMDGPU.cpp
- Arch/ARM.cpp
- Arch/AVR.cpp
- Arch/Hexagon.cpp
- Arch/Mips.cpp
- Arch/MipsArchTree.cpp
- Arch/MSP430.cpp
- Arch/PPC.cpp
- Arch/PPC64.cpp
- Arch/RISCV.cpp
- Arch/SPARCV9.cpp
- Arch/X86.cpp
- Arch/X86_64.cpp
- ARMErrataFix.cpp
- CallGraphSort.cpp
- DWARF.cpp
- Driver.cpp
- DriverUtils.cpp
- EhFrame.cpp
- ICF.cpp
- InputFiles.cpp
- InputSection.cpp
- LTO.cpp
- LinkerScript.cpp
- MapFile.cpp
- MarkLive.cpp
- OutputSections.cpp
- Relocations.cpp
- ScriptLexer.cpp
- ScriptParser.cpp
- SymbolTable.cpp
- Symbols.cpp
- SyntheticSections.cpp
- Target.cpp
- Thunks.cpp
- Writer.cpp
-
- LINK_COMPONENTS
- ${LLVM_TARGETS_TO_BUILD}
- BinaryFormat
- BitWriter
- Core
- DebugInfoDWARF
- LTO
- MC
- Object
- Option
- Support
-
- LINK_LIBS
- lldCommon
- ${LLVM_PTHREAD_LIB}
-
- DEPENDS
- ELFOptionsTableGen
- ${tablegen_deps}
- )
diff --git a/lld/docs/CMakeLists.txt b/lld/docs/CMakeLists.txt
deleted file mode 100644
index 112ce35e8cf4..000000000000
--- a/lld/docs/CMakeLists.txt
+++ /dev/null
@@ -1,8 +0,0 @@
-if (LLVM_ENABLE_SPHINX)
- include(AddSphinxTarget)
- if (SPHINX_FOUND)
- if (${SPHINX_OUTPUT_HTML})
- add_sphinx_target(html lld)
- endif()
- endif()
-endif()
diff --git a/lld/lib/CMakeLists.txt b/lld/lib/CMakeLists.txt
deleted file mode 100644
index 8884efcfe9ba..000000000000
--- a/lld/lib/CMakeLists.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-add_subdirectory(Core)
-add_subdirectory(Driver)
-add_subdirectory(ReaderWriter)
diff --git a/lld/lib/Core/CMakeLists.txt b/lld/lib/Core/CMakeLists.txt
deleted file mode 100644
index 2d4d9ded0886..000000000000
--- a/lld/lib/Core/CMakeLists.txt
+++ /dev/null
@@ -1,28 +0,0 @@
-if(NOT LLD_BUILT_STANDALONE)
- set(tablegen_deps intrinsics_gen)
-endif()
-
-add_lld_library(lldCore
- DefinedAtom.cpp
- Error.cpp
- File.cpp
- LinkingContext.cpp
- Reader.cpp
- Resolver.cpp
- SymbolTable.cpp
- Writer.cpp
-
- ADDITIONAL_HEADER_DIRS
- ${LLD_INCLUDE_DIR}/lld/Core
-
- LINK_COMPONENTS
- BinaryFormat
- MC
- Support
-
- LINK_LIBS
- ${LLVM_PTHREAD_LIB}
-
- DEPENDS
- ${tablegen_deps}
- )
diff --git a/lld/lib/Driver/CMakeLists.txt b/lld/lib/Driver/CMakeLists.txt
deleted file mode 100644
index ff67c282f47e..000000000000
--- a/lld/lib/Driver/CMakeLists.txt
+++ /dev/null
@@ -1,23 +0,0 @@
-set(LLVM_TARGET_DEFINITIONS DarwinLdOptions.td)
-tablegen(LLVM DarwinLdOptions.inc -gen-opt-parser-defs)
-add_public_tablegen_target(DriverOptionsTableGen)
-
-add_lld_library(lldDriver
- DarwinLdDriver.cpp
-
- ADDITIONAL_HEADER_DIRS
- ${LLD_INCLUDE_DIR}/lld/Driver
-
- LINK_COMPONENTS
- Option
- Support
-
- LINK_LIBS
- lldCommon
- lldCore
- lldMachO
- lldReaderWriter
- lldYAML
- )
-
-add_dependencies(lldDriver DriverOptionsTableGen)
diff --git a/lld/lib/ReaderWriter/CMakeLists.txt b/lld/lib/ReaderWriter/CMakeLists.txt
deleted file mode 100644
index bedb836d2c1e..000000000000
--- a/lld/lib/ReaderWriter/CMakeLists.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-add_subdirectory(MachO)
-add_subdirectory(YAML)
-
-if (MSVC)
- add_definitions(-wd4062) # Suppress 'warning C4062: Enumerator has no associated handler in a switch statement.'
-endif()
-
-add_lld_library(lldReaderWriter
- FileArchive.cpp
-
- ADDITIONAL_HEADER_DIRS
- ${LLD_INCLUDE_DIR}/lld/ReaderWriter
-
- LINK_COMPONENTS
- Object
- Support
-
- LINK_LIBS
- lldCore
- )
diff --git a/lld/lib/ReaderWriter/MachO/CMakeLists.txt b/lld/lib/ReaderWriter/MachO/CMakeLists.txt
deleted file mode 100644
index 37d1de432c0f..000000000000
--- a/lld/lib/ReaderWriter/MachO/CMakeLists.txt
+++ /dev/null
@@ -1,35 +0,0 @@
-add_lld_library(lldMachO
- ArchHandler.cpp
- ArchHandler_arm.cpp
- ArchHandler_arm64.cpp
- ArchHandler_x86.cpp
- ArchHandler_x86_64.cpp
- CompactUnwindPass.cpp
- GOTPass.cpp
- LayoutPass.cpp
- MachOLinkingContext.cpp
- MachONormalizedFileBinaryReader.cpp
- MachONormalizedFileBinaryWriter.cpp
- MachONormalizedFileFromAtoms.cpp
- MachONormalizedFileToAtoms.cpp
- MachONormalizedFileYAML.cpp
- ObjCPass.cpp
- ShimPass.cpp
- StubsPass.cpp
- TLVPass.cpp
- WriterMachO.cpp
-
- LINK_COMPONENTS
- DebugInfoDWARF
- Demangle
- Object
- Support
-
- LINK_LIBS
- lldCommon
- lldCore
- lldYAML
- ${LLVM_PTHREAD_LIB}
- )
-
-include_directories(.)
diff --git a/lld/lib/ReaderWriter/YAML/CMakeLists.txt b/lld/lib/ReaderWriter/YAML/CMakeLists.txt
deleted file mode 100644
index 0e63574a63d2..000000000000
--- a/lld/lib/ReaderWriter/YAML/CMakeLists.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-add_lld_library(lldYAML
- ReaderWriterYAML.cpp
-
- LINK_COMPONENTS
- Support
-
- LINK_LIBS
- lldCore
- )
diff --git a/lld/tools/lld/CMakeLists.txt b/lld/tools/lld/CMakeLists.txt
deleted file mode 100644
index a15e296e31df..000000000000
--- a/lld/tools/lld/CMakeLists.txt
+++ /dev/null
@@ -1,28 +0,0 @@
-set(LLVM_LINK_COMPONENTS
- Support
- )
-
-add_lld_tool(lld
- lld.cpp
- )
-
-target_link_libraries(lld
- PRIVATE
- lldCommon
- lldCOFF
- lldDriver
- lldELF
- lldMinGW
- lldWasm
- )
-
-install(TARGETS lld
- RUNTIME DESTINATION bin)
-
-if(NOT LLD_SYMLINKS_TO_CREATE)
- set(LLD_SYMLINKS_TO_CREATE lld-link ld.lld ld64.lld wasm-ld)
-endif()
-
-foreach(link ${LLD_SYMLINKS_TO_CREATE})
- add_lld_symlink(${link} lld)
-endforeach()