diff options
| author | Stefan Granitz <stefan.graenitz@gmail.com> | 2019-07-10 16:02:46 +0000 |
|---|---|---|
| committer | Stefan Granitz <stefan.graenitz@gmail.com> | 2019-07-10 16:02:46 +0000 |
| commit | bf223dff7ef076733c9b28c992028ee2dc8c9114 (patch) | |
| tree | e36f74ccfca8398d7dc02e8c670cec479f3cd998 | |
| parent | 86d3c9fd1fd70760e417b3efacc29c0a4cc6194b (diff) | |
| download | bcm5719-llvm-bf223dff7ef076733c9b28c992028ee2dc8c9114.tar.gz bcm5719-llvm-bf223dff7ef076733c9b28c992028ee2dc8c9114.zip | |
[CMake][NFC] Remove dead code lldb_append_link_flags() from AddLLDB.cmake
llvm-svn: 365651
| -rw-r--r-- | lldb/cmake/modules/AddLLDB.cmake | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lldb/cmake/modules/AddLLDB.cmake b/lldb/cmake/modules/AddLLDB.cmake index d420a1242c3..9859fe7b68a 100644 --- a/lldb/cmake/modules/AddLLDB.cmake +++ b/lldb/cmake/modules/AddLLDB.cmake @@ -160,22 +160,6 @@ function(add_lldb_tool name) add_lldb_executable(${name} GENERATE_INSTALL ${ARG_UNPARSED_ARGUMENTS}) endfunction() -# Support appending linker flags to an existing target. -# This will preserve the existing linker flags on the -# target, if there are any. -function(lldb_append_link_flags target_name new_link_flags) - # Retrieve existing linker flags. - get_target_property(current_link_flags ${target_name} LINK_FLAGS) - - # If we had any linker flags, include them first in the new linker flags. - if(current_link_flags) - set(new_link_flags "${current_link_flags} ${new_link_flags}") - endif() - - # Now set them onto the target. - set_target_properties(${target_name} PROPERTIES LINK_FLAGS ${new_link_flags}) -endfunction() - # The test suite relies on finding LLDB.framework binary resources in the # build-tree. Remove them before installing to avoid collisions with their # own install targets. |

