Skip to content

Commit

Permalink
Remove unused method add_swift_llvm_loadable_module
Browse files Browse the repository at this point in the history
This function was discovered to be unused during the review of apple#435. It
was requested that it be removed as a subsequent pull.
  • Loading branch information
RLovelett committed Dec 23, 2015
1 parent be505d2 commit dd342bb
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions cmake/modules/AddSwift.cmake
Expand Up @@ -1847,37 +1847,3 @@ function(add_swift_executable name)
${SWIFTEXE_DONT_STRIP_NON_MAIN_SYMBOLS_FLAG}
${SWIFTEXE_DISABLE_ASLR_FLAG})
endfunction()

function(add_swift_llvm_loadable_module name)
add_llvm_loadable_module(${name} ${ARGN})
set(sdk "${SWIFT_HOST_VARIANT_SDK}")
set(arch "${SWIFT_HOST_VARIANT_ARCH}")

# Determine compiler flags.
set(c_compile_flags)
_add_variant_c_compile_flags(
"${sdk}"
"${arch}"
"${CMAKE_BUILD_TYPE}"
"${LLVM_ENABLE_ASSERTIONS}"
FALSE
c_compile_flags)

set(link_flags)
_add_variant_link_flags(
"${sdk}"
"${arch}"
"${CMAKE_BUILD_TYPE}"
"${LLVM_ENABLE_ASSERTIONS}"
FALSE
link_flags)

# Convert variables to space-separated strings.
_list_escape_for_shell("${c_compile_flags}" c_compile_flags)
_list_escape_for_shell("${link_flags}" link_flags)

set_property(TARGET ${name} APPEND_STRING PROPERTY
COMPILE_FLAGS " ${c_compile_flags}")
set_property(TARGET ${name} APPEND_STRING PROPERTY
LINK_FLAGS " ${link_flags}")
endfunction()

0 comments on commit dd342bb

Please sign in to comment.