|
49 | 49 | #include "llvm/Transforms/Instrumentation/RealtimeSanitizer.h" |
50 | 50 | #include "llvm/Transforms/Instrumentation/ThreadSanitizer.h" |
51 | 51 | #include "llvm/Transforms/Scalar/AnnotationRemarks.h" |
52 | | -#if LLVM_VERSION_GE(23, 0) |
53 | | -#include "llvm/Transforms/Utils/AssignGUID.h" |
54 | | -#endif |
55 | 52 | #include "llvm/Transforms/Utils/CanonicalizeAliases.h" |
56 | 53 | #include "llvm/Transforms/Utils/FunctionImportUtils.h" |
57 | 54 | #include "llvm/Transforms/Utils/NameAnonGlobals.h" |
@@ -918,9 +915,6 @@ extern "C" LLVMRustResult LLVMRustOptimize( |
918 | 915 | if (NeedThinLTOBufferPasses) { |
919 | 916 | MPM.addPass(CanonicalizeAliasesPass()); |
920 | 917 | MPM.addPass(NameAnonGlobalPass()); |
921 | | -#if LLVM_VERSION_GE(23, 0) |
922 | | - MPM.addPass(AssignGUIDPass()); |
923 | | -#endif |
924 | 918 | } |
925 | 919 | // For `-Copt-level=0`, and the pre-link fat/thin LTO stages. |
926 | 920 | if (ThinLTOBufferRef && *ThinLTOBufferRef == nullptr) { |
@@ -1460,9 +1454,6 @@ extern "C" LLVMRustBuffer *LLVMRustModuleSerialize(LLVMModuleRef M, |
1460 | 1454 | PB.registerLoopAnalyses(LAM); |
1461 | 1455 | PB.crossRegisterProxies(LAM, FAM, CGAM, MAM); |
1462 | 1456 | ModulePassManager MPM; |
1463 | | -#if LLVM_VERSION_GE(23, 0) |
1464 | | - MPM.addPass(AssignGUIDPass()); |
1465 | | -#endif |
1466 | 1457 | MPM.addPass(ThinLTOBitcodeWriterPass(OS, nullptr)); |
1467 | 1458 | MPM.run(*unwrap(M), MAM); |
1468 | 1459 | } else { |
|
0 commit comments