Skip to content

Commit ab41180

Browse files
committed
[cmake] Explicitly mark libraries defined in lib/ as "Component Libraries"
Summary: Most libraries are defined in the lib/ directory but there are also a few libraries defined in tools/ e.g. libLLVM, libLTO. I'm defining "Component Libraries" as libraries defined in lib/ that may be included in libLLVM.so. Explicitly marking the libraries in lib/ as component libraries allows us to remove some fragile checks that attempt to differentiate between lib/ libraries and tools/ libraires: 1. In tools/llvm-shlib, because llvm_map_components_to_libnames(LIB_NAMES "all") returned a list of all libraries defined in the whole project, there was custom code needed to filter out libraries defined in tools/, none of which should be included in libLLVM.so. This code assumed that any library defined as static was from lib/ and everything else should be excluded. With this change, llvm_map_components_to_libnames(LIB_NAMES, "all") only returns libraries that have been added to the LLVM_COMPONENT_LIBS global cmake property, so this custom filtering logic can be removed. Doing this also fixes the build with BUILD_SHARED_LIBS=ON and LLVM_BUILD_LLVM_DYLIB=ON. 2. There was some code in llvm_add_library that assumed that libraries defined in lib/ would not have LLVM_LINK_COMPONENTS or ARG_LINK_COMPONENTS set. This is only true because libraries defined lib lib/ use LLVMBuild.txt and don't set these values. This code has been fixed now to check if the library has been explicitly marked as a component library, which should now make it easier to remove LLVMBuild at some point in the future. I have tested this patch on Windows, MacOS and Linux with release builds and the following combinations of CMake options: - "" (No options) - -DLLVM_BUILD_LLVM_DYLIB=ON - -DLLVM_LINK_LLVM_DYLIB=ON - -DBUILD_SHARED_LIBS=ON - -DBUILD_SHARED_LIBS=ON -DLLVM_BUILD_LLVM_DYLIB=ON - -DBUILD_SHARED_LIBS=ON -DLLVM_LINK_LLVM_DYLIB=ON Reviewers: beanz, smeenai, compnerd, phosek Reviewed By: beanz Subscribers: wuzish, jholewinski, arsenm, dschuff, jyknight, dylanmckay, sdardis, nemanjai, jvesely, nhaehnle, mgorny, mehdi_amini, sbc100, jgravelle-google, hiraditya, aheejin, fedor.sergeev, asb, rbar, johnrusso, simoncook, apazos, sabuasal, niosHD, jrtc27, MaskRay, zzheng, edward-jones, atanasyan, steven_wu, rogfer01, MartinMosbeck, brucehoult, the_o, dexonsmith, PkmX, jocewei, jsji, dang, Jim, lenary, s.egerton, pzheng, sameer.abuasal, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D70179
1 parent aaea248 commit ab41180

File tree

139 files changed

+156
-154
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+156
-154
lines changed

llvm/cmake/modules/AddLLVM.cmake

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,10 +397,14 @@ endfunction(set_windows_version_resource_properties)
397397
# Suppress default RPATH settings in shared libraries.
398398
# PLUGIN_TOOL
399399
# The tool (i.e. cmake target) that this plugin will link against
400+
# COMPONENT_LIB
401+
# This is used to specify that this is a component library of
402+
# LLVM which means that the source resides in llvm/lib/ and it is a
403+
# candidate for inclusion into libLLVM.so.
400404
# )
401405
function(llvm_add_library name)
402406
cmake_parse_arguments(ARG
403-
"MODULE;SHARED;STATIC;OBJECT;DISABLE_LLVM_LINK_LLVM_DYLIB;SONAME;NO_INSTALL_RPATH"
407+
"MODULE;SHARED;STATIC;OBJECT;DISABLE_LLVM_LINK_LLVM_DYLIB;SONAME;NO_INSTALL_RPATH;COMPONENT_LIB"
404408
"OUTPUT_NAME;PLUGIN_TOOL;ENTITLEMENTS;BUNDLE_PATH"
405409
"ADDITIONAL_HEADERS;DEPENDS;LINK_COMPONENTS;LINK_LIBS;OBJLIBS"
406410
${ARGN})
@@ -486,6 +490,11 @@ function(llvm_add_library name)
486490
add_library(${name} STATIC ${ALL_FILES})
487491
endif()
488492

493+
if(ARG_COMPONENT_LIB)
494+
set_target_properties(${name} PROPERTIES LLVM_COMPONENT TRUE)
495+
set_property(GLOBAL APPEND PROPERTY LLVM_COMPONENT_LIBS ${name})
496+
endif()
497+
489498
if(NOT ARG_NO_INSTALL_RPATH)
490499
if(ARG_MODULE OR ARG_SHARED)
491500
llvm_setup_rpath(${name})
@@ -570,7 +579,7 @@ function(llvm_add_library name)
570579
if(ARG_MODULE AND LLVM_EXPORT_SYMBOLS_FOR_PLUGINS AND ARG_PLUGIN_TOOL AND (WIN32 OR CYGWIN))
571580
# On DLL platforms symbols are imported from the tool by linking against it.
572581
set(llvm_libs ${ARG_PLUGIN_TOOL})
573-
elseif (DEFINED LLVM_LINK_COMPONENTS OR DEFINED ARG_LINK_COMPONENTS)
582+
elseif (NOT ARG_COMPONENT_LIB)
574583
if (LLVM_LINK_LLVM_DYLIB AND NOT ARG_DISABLE_LLVM_LINK_LLVM_DYLIB)
575584
set(llvm_libs LLVM)
576585
else()
@@ -669,6 +678,10 @@ function(add_llvm_install_targets target)
669678
endif()
670679
endfunction()
671680

681+
function(add_llvm_component_library name)
682+
add_llvm_library(${name} COMPONENT_LIB ${ARGN})
683+
endfunction()
684+
672685
macro(add_llvm_library name)
673686
cmake_parse_arguments(ARG
674687
"SHARED;BUILDTREE_ONLY;MODULE;INSTALL_WITH_TOOLCHAIN"
@@ -1027,7 +1040,7 @@ macro(add_llvm_target target_name)
10271040
include_directories(BEFORE
10281041
${CMAKE_CURRENT_BINARY_DIR}
10291042
${CMAKE_CURRENT_SOURCE_DIR})
1030-
add_llvm_library(LLVM${target_name} ${ARGN})
1043+
add_llvm_component_library(LLVM${target_name} ${ARGN})
10311044
set( CURRENT_LLVM_TARGET LLVM${target_name} )
10321045
endmacro(add_llvm_target)
10331046

llvm/cmake/modules/LLVM-Config.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ function(llvm_map_components_to_libnames out_libs)
267267
elseif( c STREQUAL "engine" )
268268
# already processed
269269
elseif( c STREQUAL "all" )
270-
list(APPEND expanded_components ${LLVM_AVAILABLE_LIBS})
270+
get_property(all_components GLOBAL PROPERTY LLVM_COMPONENT_LIBS)
271+
list(APPEND expanded_components ${all_components})
271272
else()
272273
# Canonize the component name:
273274
string(TOUPPER "${c}" capitalized)

llvm/lib/Analysis/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMAnalysis
1+
add_llvm_component_library(LLVMAnalysis
22
AliasAnalysis.cpp
33
AliasAnalysisEvaluator.cpp
44
AliasAnalysisSummary.cpp

llvm/lib/AsmParser/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AsmParser
2-
add_llvm_library(LLVMAsmParser
2+
add_llvm_component_library(LLVMAsmParser
33
LLLexer.cpp
44
LLParser.cpp
55
Parser.cpp

llvm/lib/BinaryFormat/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMBinaryFormat
1+
add_llvm_component_library(LLVMBinaryFormat
22
AMDGPUMetadataVerifier.cpp
33
Dwarf.cpp
44
Magic.cpp

llvm/lib/Bitcode/Reader/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMBitReader
1+
add_llvm_component_library(LLVMBitReader
22
BitcodeAnalyzer.cpp
33
BitReader.cpp
44
BitcodeReader.cpp

llvm/lib/Bitcode/Writer/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMBitWriter
1+
add_llvm_component_library(LLVMBitWriter
22
BitWriter.cpp
33
BitcodeWriter.cpp
44
BitcodeWriterPass.cpp

llvm/lib/Bitstream/Reader/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMBitstreamReader
1+
add_llvm_component_library(LLVMBitstreamReader
22
BitstreamReader.cpp
33

44
ADDITIONAL_HEADER_DIRS

llvm/lib/CodeGen/AsmPrinter/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMAsmPrinter
1+
add_llvm_component_library(LLVMAsmPrinter
22
AccelTable.cpp
33
AddressPool.cpp
44
ARMException.cpp

llvm/lib/CodeGen/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMCodeGen
1+
add_llvm_component_library(LLVMCodeGen
22
AggressiveAntiDepBreaker.cpp
33
AllocationOrder.cpp
44
Analysis.cpp

llvm/lib/CodeGen/GlobalISel/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMGlobalISel
1+
add_llvm_component_library(LLVMGlobalISel
22
CSEInfo.cpp
33
GISelKnownBits.cpp
44
CSEMIRBuilder.cpp

llvm/lib/CodeGen/MIRParser/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMMIRParser
1+
add_llvm_component_library(LLVMMIRParser
22
MILexer.cpp
33
MIParser.cpp
44
MIRParser.cpp

llvm/lib/CodeGen/SelectionDAG/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMSelectionDAG
1+
add_llvm_component_library(LLVMSelectionDAG
22
DAGCombiner.cpp
33
FastISel.cpp
44
FunctionLoweringInfo.cpp

llvm/lib/DebugInfo/CodeView/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMDebugInfoCodeView
1+
add_llvm_component_library(LLVMDebugInfoCodeView
22
AppendingTypeTableBuilder.cpp
33
CodeViewError.cpp
44
CodeViewRecordIO.cpp

llvm/lib/DebugInfo/DWARF/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMDebugInfoDWARF
1+
add_llvm_component_library(LLVMDebugInfoDWARF
22
DWARFAbbreviationDeclaration.cpp
33
DWARFAddressRange.cpp
44
DWARFAcceleratorTable.cpp

llvm/lib/DebugInfo/GSYM/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMDebugInfoGSYM
1+
add_llvm_component_library(LLVMDebugInfoGSYM
22
Header.cpp
33
FileWriter.cpp
44
FunctionInfo.cpp

llvm/lib/DebugInfo/MSF/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMDebugInfoMSF
1+
add_llvm_component_library(LLVMDebugInfoMSF
22
MappedBlockStream.cpp
33
MSFBuilder.cpp
44
MSFCommon.cpp

llvm/lib/DebugInfo/PDB/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ add_pdb_impl_folder(Native
8484
list(APPEND LIBPDB_ADDITIONAL_HEADER_DIRS "${LLVM_MAIN_INCLUDE_DIR}/llvm/DebugInfo/PDB/Native")
8585
list(APPEND LIBPDB_ADDITIONAL_HEADER_DIRS "${LLVM_MAIN_INCLUDE_DIR}/llvm/DebugInfo/PDB")
8686

87-
add_llvm_library(LLVMDebugInfoPDB
87+
add_llvm_component_library(LLVMDebugInfoPDB
8888
GenericError.cpp
8989
IPDBSourceFile.cpp
9090
PDB.cpp

llvm/lib/DebugInfo/Symbolize/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMSymbolize
1+
add_llvm_component_library(LLVMSymbolize
22
DIPrinter.cpp
33
SymbolizableObjectFile.cpp
44
Symbolize.cpp

llvm/lib/Demangle/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMDemangle
1+
add_llvm_component_library(LLVMDemangle
22
Demangle.cpp
33
ItaniumDemangle.cpp
44
MicrosoftDemangle.cpp

llvm/lib/ExecutionEngine/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22

3-
add_llvm_library(LLVMExecutionEngine
3+
add_llvm_component_library(LLVMExecutionEngine
44
ExecutionEngine.cpp
55
ExecutionEngineBindings.cpp
66
GDBRegistrationListener.cpp

llvm/lib/ExecutionEngine/IntelJITEvents/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ endif()
77
set(LLVM_INTEL_JIT_LIBS ${LLVM_PTHREAD_LIB} ${LLVM_INTEL_JIT_LIBS})
88

99

10-
add_llvm_library(LLVMIntelJITEvents
10+
add_llvm_component_library(LLVMIntelJITEvents
1111
IntelJITEventListener.cpp
1212
jitprofiling.c
1313

llvm/lib/ExecutionEngine/Interpreter/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if( FFI_INCLUDE_PATH )
66
include_directories( ${FFI_INCLUDE_PATH} )
77
endif()
88

9-
add_llvm_library(LLVMInterpreter
9+
add_llvm_component_library(LLVMInterpreter
1010
Execution.cpp
1111
ExternalFunctions.cpp
1212
Interpreter.cpp

llvm/lib/ExecutionEngine/JITLink/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMJITLink
1+
add_llvm_component_library(LLVMJITLink
22
JITLink.cpp
33
JITLinkGeneric.cpp
44
JITLinkMemoryManager.cpp

llvm/lib/ExecutionEngine/MCJIT/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMMCJIT
1+
add_llvm_component_library(LLVMMCJIT
22
MCJIT.cpp
33

44
DEPENDS
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
include_directories( ${LLVM_OPROFILE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/.. )
33

4-
add_llvm_library(LLVMOProfileJIT
4+
add_llvm_component_library(LLVMOProfileJIT
55
OProfileJITEventListener.cpp
66
OProfileWrapper.cpp
77
)

llvm/lib/ExecutionEngine/Orc/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMOrcJIT
1+
add_llvm_component_library(LLVMOrcJIT
22
CompileOnDemandLayer.cpp
33
CompileUtils.cpp
44
Core.cpp

llvm/lib/ExecutionEngine/OrcError/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMOrcError
1+
add_llvm_component_library(LLVMOrcError
22
OrcError.cpp
33
RPCError.cpp
44
ADDITIONAL_HEADER_DIRS

llvm/lib/ExecutionEngine/PerfJITEvents/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMPerfJITEvents
1+
add_llvm_component_library(LLVMPerfJITEvents
22
PerfJITEventListener.cpp
33
)
44

llvm/lib/ExecutionEngine/RuntimeDyld/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMRuntimeDyld
1+
add_llvm_component_library(LLVMRuntimeDyld
22
JITSymbol.cpp
33
RTDyldMemoryManager.cpp
44
RuntimeDyld.cpp

llvm/lib/FuzzMutate/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMFuzzMutate
1+
add_llvm_component_library(LLVMFuzzMutate
22
FuzzerCLI.cpp
33
IRMutator.cpp
44
OpDescriptor.cpp

llvm/lib/IR/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ set(LLVM_TARGET_DEFINITIONS AttributesCompatFunc.td)
22
tablegen(LLVM AttributesCompatFunc.inc -gen-attrs)
33
add_public_tablegen_target(AttributeCompatFuncTableGen)
44

5-
add_llvm_library(LLVMCore
5+
add_llvm_component_library(LLVMCore
66
AbstractCallSite.cpp
77
AsmWriter.cpp
88
Attributes.cpp

llvm/lib/IRReader/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMIRReader
1+
add_llvm_component_library(LLVMIRReader
22
IRReader.cpp
33

44
ADDITIONAL_HEADER_DIRS

llvm/lib/LTO/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMLTO
1+
add_llvm_component_library(LLVMLTO
22
Caching.cpp
33
LTO.cpp
44
LTOBackend.cpp

llvm/lib/LineEditor/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ if(HAVE_LIBEDIT)
22
set(link_libs edit)
33
endif()
44

5-
add_llvm_library(LLVMLineEditor
5+
add_llvm_component_library(LLVMLineEditor
66
LineEditor.cpp
77

88
ADDITIONAL_HEADER_DIRS

llvm/lib/Linker/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMLinker
1+
add_llvm_component_library(LLVMLinker
22
IRMover.cpp
33
LinkModules.cpp
44

llvm/lib/MC/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMMC
1+
add_llvm_component_library(LLVMMC
22
ConstantPools.cpp
33
ELFObjectWriter.cpp
44
MCAsmBackend.cpp

llvm/lib/MC/MCDisassembler/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMMCDisassembler
1+
add_llvm_component_library(LLVMMCDisassembler
22
Disassembler.cpp
33
MCDisassembler.cpp
44
MCExternalSymbolizer.cpp

llvm/lib/MC/MCParser/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMMCParser
1+
add_llvm_component_library(LLVMMCParser
22
AsmLexer.cpp
33
AsmParser.cpp
44
COFFAsmParser.cpp

llvm/lib/MCA/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMMCA
1+
add_llvm_component_library(LLVMMCA
22
CodeEmitter.cpp
33
Context.cpp
44
HWEventListener.cpp

llvm/lib/Object/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMObject
1+
add_llvm_component_library(LLVMObject
22
Archive.cpp
33
ArchiveWriter.cpp
44
Binary.cpp

llvm/lib/ObjectYAML/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMObjectYAML
1+
add_llvm_component_library(LLVMObjectYAML
22
CodeViewYAMLDebugSections.cpp
33
CodeViewYAMLSymbols.cpp
44
CodeViewYAMLTypeHashing.cpp

llvm/lib/Option/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMOption
1+
add_llvm_component_library(LLVMOption
22
Arg.cpp
33
ArgList.cpp
44
Option.cpp

llvm/lib/Passes/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ if (MSVC)
22
set_source_files_properties(PassBuilder.cpp PROPERTIES COMPILE_FLAGS /bigobj)
33
endif()
44

5-
add_llvm_library(LLVMPasses
5+
add_llvm_component_library(LLVMPasses
66
PassBuilder.cpp
77
PassPlugin.cpp
88
StandardInstrumentations.cpp

llvm/lib/ProfileData/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMProfileData
1+
add_llvm_component_library(LLVMProfileData
22
GCOV.cpp
33
InstrProf.cpp
44
InstrProfReader.cpp

llvm/lib/ProfileData/Coverage/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMCoverage
1+
add_llvm_component_library(LLVMCoverage
22
CoverageMapping.cpp
33
CoverageMappingWriter.cpp
44
CoverageMappingReader.cpp

llvm/lib/Remarks/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMRemarks
1+
add_llvm_component_library(LLVMRemarks
22
BitstreamRemarkParser.cpp
33
BitstreamRemarkSerializer.cpp
44
Remark.cpp

llvm/lib/Support/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ else()
5151
set(Z3_LINK_FILES "")
5252
endif()
5353

54-
add_llvm_library(LLVMSupport
54+
add_llvm_component_library(LLVMSupport
5555
AArch64TargetParser.cpp
5656
ABIBreak.cpp
5757
ARMTargetParser.cpp

llvm/lib/TableGen/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMTableGen
1+
add_llvm_component_library(LLVMTableGen
22
Error.cpp
33
JSONBackend.cpp
44
Main.cpp
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. )
22

3-
add_llvm_library(LLVMAArch64AsmParser
3+
add_llvm_component_library(LLVMAArch64AsmParser
44
AArch64AsmParser.cpp
55
)
66

llvm/lib/Target/AArch64/Disassembler/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. )
22

3-
add_llvm_library(LLVMAArch64Disassembler
3+
add_llvm_component_library(LLVMAArch64Disassembler
44
AArch64Disassembler.cpp
55
AArch64ExternalSymbolizer.cpp
66
)

llvm/lib/Target/AArch64/MCTargetDesc/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_llvm_library(LLVMAArch64Desc
1+
add_llvm_component_library(LLVMAArch64Desc
22
AArch64AsmBackend.cpp
33
AArch64ELFObjectWriter.cpp
44
AArch64ELFStreamer.cpp

0 commit comments

Comments
 (0)