File tree 2 files changed +10
-1
lines changed
compiler/rustc_llvm/llvm-wrapper
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 25
25
#include " llvm/Target/TargetMachine.h"
26
26
#include " llvm/Target/TargetOptions.h"
27
27
#include " llvm/Transforms/IPO.h"
28
- #include " llvm/Transforms/Instrumentation.h"
29
28
#include " llvm/Transforms/Scalar.h"
30
29
31
30
#define LLVM_VERSION_GE (major, minor ) \
34
33
35
34
#define LLVM_VERSION_LT (major, minor ) (!LLVM_VERSION_GE((major), (minor)))
36
35
36
+ #if LLVM_VERSION_GE(20, 0)
37
+ #include " llvm/Transforms/Utils/Instrumentation.h"
38
+ #else
39
+ #include " llvm/Transforms/Instrumentation.h"
40
+ #endif
41
+
37
42
#include " llvm/IR/LegacyPassManager.h"
38
43
39
44
#include " llvm/Bitcode/BitcodeReader.h"
Original file line number Diff line number Diff line change 39
39
#include " llvm/TargetParser/Host.h"
40
40
#endif
41
41
#include " llvm/Support/TimeProfiler.h"
42
+ #if LLVM_VERSION_GE(20, 0)
43
+ #include " llvm/Transforms/Utils/Instrumentation.h"
44
+ #else
42
45
#include " llvm/Transforms/Instrumentation.h"
46
+ #endif
43
47
#include " llvm/Transforms/Instrumentation/AddressSanitizer.h"
44
48
#include " llvm/Transforms/Instrumentation/DataFlowSanitizer.h"
45
49
#if LLVM_VERSION_GE(19, 0)
You can’t perform that action at this time.
0 commit comments