File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
compiler/rustc_llvm/llvm-wrapper Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 2525#include " llvm/Target/TargetMachine.h"
2626#include " llvm/Target/TargetOptions.h"
2727#include " llvm/Transforms/IPO.h"
28- #include " llvm/Transforms/Instrumentation.h"
2928#include " llvm/Transforms/Scalar.h"
3029
3130#define LLVM_VERSION_GE (major, minor ) \
3433
3534#define LLVM_VERSION_LT (major, minor ) (!LLVM_VERSION_GE((major), (minor)))
3635
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+
3742#include " llvm/IR/LegacyPassManager.h"
3843
3944#include " llvm/Bitcode/BitcodeReader.h"
Original file line number Diff line number Diff line change 3939#include " llvm/TargetParser/Host.h"
4040#endif
4141#include " llvm/Support/TimeProfiler.h"
42- #include " llvm/Transforms/Instrumentation.h"
4342#include " llvm/Transforms/Instrumentation/AddressSanitizer.h"
4443#include " llvm/Transforms/Instrumentation/DataFlowSanitizer.h"
4544#if LLVM_VERSION_GE(19, 0)
You can’t perform that action at this time.
0 commit comments