[CMake] Move -ffunction-data-sections stuff to HandleLLVMOptions.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 28 Jan 2014 09:43:55 +0000 (09:43 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 28 Jan 2014 09:43:55 +0000 (09:43 +0000)
commit4fc67f04914586ea18695fdf758878fc174557c1
tree494f0e81d9aa0eef5ad7cfaf897ed43e6d23629c
parent286d7d83128b591dc11cb1f1b59f13864270b812
[CMake] Move -ffunction-data-sections stuff to HandleLLVMOptions.

With this tweaks, also unittests are compiled with -ffunction-sections.

It's hard to control contextual CMAKE_CXX_FLAGS. We should get rid of twiddling it as possible.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200299 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/AddLLVM.cmake
cmake/modules/HandleLLVMOptions.cmake