Don't use add_llvm_definitions for adding warning flags. It makes it too hard
authorDuncan Sands <baldrick@free.fr>
Mon, 25 Mar 2013 13:25:34 +0000 (13:25 +0000)
committerDuncan Sands <baldrick@free.fr>
Mon, 25 Mar 2013 13:25:34 +0000 (13:25 +0000)
commit71de6dcb38935e8ff58024e14cffbcac2da86006
treebf40b1d0b0158c4668d8a6c773b906d99a691215
parent8a1177f2aaf9492dda7aa0103934b98db9bb0c6e
Don't use add_llvm_definitions for adding warning flags.  It makes it too hard
to have them appear in the right order.  Instead append all warnings explicitly
to the language flags.  This was already the case for many warnings.  Fixes the
issue of -Wno-maybe-uninitialized not being effective because -Wall was being
placed after it rather than before.

llvm-svn: 177866
llvm/cmake/modules/HandleLLVMOptions.cmake