From fde8237cd9c7e0eb503e6c53994c9c9d19cbb4c6 Mon Sep 17 00:00:00 2001 From: Dylan Noblesmith Date: Mon, 13 Feb 2012 18:48:10 +0000 Subject: 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 --- include/llvm/Config/config.h.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/llvm/Config/config.h.in') diff --git a/include/llvm/Config/config.h.in b/include/llvm/Config/config.h.in index 3b20355276..1a996a20da 100644 --- a/include/llvm/Config/config.h.in +++ b/include/llvm/Config/config.h.in @@ -615,6 +615,12 @@ /* Installation prefix directory */ #undef LLVM_PREFIX +/* Major version of the LLVM API */ +#undef LLVM_VERSION_MAJOR + +/* Minor version of the LLVM API */ +#undef LLVM_VERSION_MINOR + /* Define if the OS needs help to load dependent libraries for dlopen(). */ #undef LTDL_DLOPEN_DEPLIBS -- cgit v1.2.3