diff --git a/src/rustllvm/rustllvm.h b/src/rustllvm/rustllvm.h index 0baf5528e93..20816af2f1c 100644 --- a/src/rustllvm/rustllvm.h +++ b/src/rustllvm/rustllvm.h @@ -55,6 +55,8 @@ (LLVM_VERSION_MAJOR < (major) || \ LLVM_VERSION_MAJOR == (major) && LLVM_VERSION_MINOR <= (minor)) +#define LLVM_VERSION_LT(major, minor) (!LLVM_VERSION_GE((major), (minor))) + #if LLVM_VERSION_GE(3, 7) #include "llvm/IR/LegacyPassManager.h" #else