1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00

Fix spurious warning in ExtensionDependencies.inc [nfc]

This commit is contained in:
serge-sans-paille 2020-04-30 10:14:37 +02:00
parent fc47b546d8
commit cde8d0150c

View File

@ -977,12 +977,12 @@ function(process_llvm_pass_plugins)
const char* Name;\n\
const char* RequiredLibraries[1 + 1 + ${llvm_plugin_max_deps_length}];\n\
};\n\
std::array<ExtensionDescriptor, ${llvm_static_extension_count}> AvailableExtensions{\n")
std::array<ExtensionDescriptor, ${llvm_static_extension_count}> AvailableExtensions{\n")
foreach(llvm_extension ${LLVM_STATIC_EXTENSIONS})
get_property(llvm_plugin_deps TARGET ${llvm_extension} PROPERTY LINK_LIBRARIES)
file(APPEND "${ExtensionDeps}.tmp" "{\"${llvm_extension}\", {")
file(APPEND "${ExtensionDeps}.tmp" "{{\"${llvm_extension}\", {")
foreach(llvm_plugin_dep ${llvm_plugin_deps})
# Turn library dependency back to component name, if possible.
# That way llvm-config can avoid redundant dependencies.
@ -996,7 +996,7 @@ function(process_llvm_pass_plugins)
endforeach()
# Self + mandatory trailing null, because the number of RequiredLibraries differs between extensions.
file(APPEND "${ExtensionDeps}.tmp" \"${llvm_extension}\", "nullptr}},\n")
file(APPEND "${ExtensionDeps}.tmp" \"${llvm_extension}\", "nullptr}}},\n")
endforeach()
file(APPEND "${ExtensionDeps}.tmp" "};\n")