Skip to content

Commit b37c916

Browse files
authored
Rollup merge of rust-lang#113615 - krasimirgg:llvm-17-pgo, r=nikic
llvm-wrapper: adapt for LLVM API change Adapts the wrapper for LLVM commit llvm/llvm-project@546ec64. Found by the experimental rust + LLVM @ HEAD bot: https://buildkite.com/llvm-project/rust-llvm-integrate-prototype/builds/20723#01894922-ed5d-4830-81f6-a27fb82ec8c7/210-645
2 parents 253a4ca + 71958da commit b37c916

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,7 @@ LLVMRustOptimize(
667667
assert(!PGOUsePath && !PGOSampleUsePath);
668668
PGOOpt = PGOOptions(PGOGenPath, "", "",
669669
#if LLVM_VERSION_GE(17, 0)
670+
"",
670671
FS,
671672
#endif
672673
PGOOptions::IRInstr, PGOOptions::NoCSAction,
@@ -675,20 +676,23 @@ LLVMRustOptimize(
675676
assert(!PGOSampleUsePath);
676677
PGOOpt = PGOOptions(PGOUsePath, "", "",
677678
#if LLVM_VERSION_GE(17, 0)
679+
"",
678680
FS,
679681
#endif
680682
PGOOptions::IRUse, PGOOptions::NoCSAction,
681683
DebugInfoForProfiling);
682684
} else if (PGOSampleUsePath) {
683685
PGOOpt = PGOOptions(PGOSampleUsePath, "", "",
684686
#if LLVM_VERSION_GE(17, 0)
687+
"",
685688
FS,
686689
#endif
687690
PGOOptions::SampleUse, PGOOptions::NoCSAction,
688691
DebugInfoForProfiling);
689692
} else if (DebugInfoForProfiling) {
690693
PGOOpt = PGOOptions("", "", "",
691694
#if LLVM_VERSION_GE(17, 0)
695+
"",
692696
FS,
693697
#endif
694698
PGOOptions::NoAction, PGOOptions::NoCSAction,

0 commit comments

Comments
 (0)