Skip to content

Commit c978729

Browse files
committed
rustllvm: define LLVM_VERSION_LT
1 parent 1edbc3d commit c978729

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rustllvm/rustllvm.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@
5555
(LLVM_VERSION_MAJOR < (major) || \
5656
LLVM_VERSION_MAJOR == (major) && LLVM_VERSION_MINOR <= (minor))
5757

58+
#define LLVM_VERSION_LT(major, minor) (!LLVM_VERSION_GE((major), (minor)))
59+
5860
#if LLVM_VERSION_GE(3, 7)
5961
#include "llvm/IR/LegacyPassManager.h"
6062
#else

0 commit comments

Comments
 (0)