Skip to content

Commit 04961d2

Browse files
committed
LLVMWrapper: attractive nuisance macros
THis came up in the review of #83425: it's hard to imagine a use of LLVM_VERSION_LE() or LLVM_VERSION_EQ() that's not asking for trouble when a point release gets created, so let's just discard them to prevent the issue.
1 parent 673d0db commit 04961d2

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

compiler/rustc_llvm/llvm-wrapper/LLVMWrapper.h

-7
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,6 @@
3333
(LLVM_VERSION_MAJOR > (major) || \
3434
LLVM_VERSION_MAJOR == (major) && LLVM_VERSION_MINOR >= (minor))
3535

36-
#define LLVM_VERSION_EQ(major, minor) \
37-
(LLVM_VERSION_MAJOR == (major) && LLVM_VERSION_MINOR == (minor))
38-
39-
#define LLVM_VERSION_LE(major, minor) \
40-
(LLVM_VERSION_MAJOR < (major) || \
41-
LLVM_VERSION_MAJOR == (major) && LLVM_VERSION_MINOR <= (minor))
42-
4336
#define LLVM_VERSION_LT(major, minor) (!LLVM_VERSION_GE((major), (minor)))
4437

4538
#include "llvm/IR/LegacyPassManager.h"

0 commit comments

Comments
 (0)