add LLVM_VERSION_MAJOR and _MINOR defines
authorDylan Noblesmith <nobled@dreamwidth.org>
Mon, 13 Feb 2012 18:48:10 +0000 (18:48 +0000)
committerDylan Noblesmith <nobled@dreamwidth.org>
Mon, 13 Feb 2012 18:48:10 +0000 (18:48 +0000)
commitfde8237cd9c7e0eb503e6c53994c9c9d19cbb4c6
tree3c55ba867738db4cce7c1216d82da4c9be6ed9ff
parent3ed4dee530984b7087dd3bbf4cfd8a3f1947c8e0
add LLVM_VERSION_MAJOR and _MINOR defines

This is useful for clients that want to maintain compatibility
across multiple releases of LLVM. Currently users like Klee and
Mesa all have to roll their own 'parse llvm-config --version
output and generate defines' solution.

Also reuse the new macros so that version information is less
redundant/likely to fall out of sync again in the future.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150405 91177308-0d34-0410-b5e6-96231b3b80d8
CMakeLists.txt
autoconf/configure.ac
cmake/modules/LLVMConfig.cmake.in
configure
include/llvm/Config/config.h.cmake
include/llvm/Config/config.h.in
include/llvm/Config/llvm-config.h.cmake
include/llvm/Config/llvm-config.h.in