summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorserge-sans-paille <sguelton@redhat.com>2020-04-30 10:14:37 +0200
committerTom Stellard <tstellar@redhat.com>2020-06-17 16:57:30 -0700
commit3ca8b23cf5b9afc4ea05ac0533fbb874c5660e1d (patch)
tree334a23d1a9febe7b242ca76b0af14d2ad4a6d79b
parent576559ed5d0805120d3729db24b33d00489be5f8 (diff)
downloadllvm-3ca8b23cf5b9afc4ea05ac0533fbb874c5660e1d.tar.gz
Fix spurious warning in ExtensionDependencies.inc [nfc]
(cherry picked from commit 37309fb02f60557f18971dc575904c0fc56c91ab)
-rw-r--r--llvm/cmake/modules/AddLLVM.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
index bd22353b6cfc..f5a1b0d6f238 100644
--- a/llvm/cmake/modules/AddLLVM.cmake
+++ b/llvm/cmake/modules/AddLLVM.cmake
@@ -972,12 +972,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.
@@ -991,7 +991,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")