Expose LLVM_VERSION_PATCH in llvm-config.h
authorReid Kleckner <reid@kleckner.net>
Tue, 17 Feb 2015 20:02:34 +0000 (20:02 +0000)
committerReid Kleckner <reid@kleckner.net>
Tue, 17 Feb 2015 20:02:34 +0000 (20:02 +0000)
commitaaaad89266c51c1b6a42d83f30130c8bf84c3804
tree744a4668b2808e0183639e1d5d78769e2976480a
parent24dded23424a047efe7111f9a83e1ec3e89fb584
Expose LLVM_VERSION_PATCH in llvm-config.h

There was no reason to keep this private in config.h, and users
requested that it be available in PR22615.

Also fix a bug where patch versions of '0' would cause the macro to
remain undefined. The "#cmakedefine" command only creates a macro if the
named variable would be considered true in the context of an if().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229529 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Config/config.h.cmake
include/llvm/Config/llvm-config.h.cmake
include/llvm/Config/llvm-config.h.in