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)
commit9d6eb573d7e760626401008b590a6eaeb1508c18
treea90c8ec6994d7a247a2db31c202c8d9d0f902285
parenta49d68e0784c46c42b8668e7b7def4caa7cf0778
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().

llvm-svn: 229529
llvm/include/llvm/Config/config.h.cmake
llvm/include/llvm/Config/llvm-config.h.cmake
llvm/include/llvm/Config/llvm-config.h.in