llvm-wrapper: adapt for LLVM API change

Adapts the wrapper for LLVM commit
546ec641b4.

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
This commit is contained in:
Krasimir Georgiev 2023-07-12 09:30:31 +00:00
parent 6732922ea6
commit 71958da485

View File

@ -667,6 +667,7 @@ LLVMRustOptimize(
assert(!PGOUsePath && !PGOSampleUsePath); assert(!PGOUsePath && !PGOSampleUsePath);
PGOOpt = PGOOptions(PGOGenPath, "", "", PGOOpt = PGOOptions(PGOGenPath, "", "",
#if LLVM_VERSION_GE(17, 0) #if LLVM_VERSION_GE(17, 0)
"",
FS, FS,
#endif #endif
PGOOptions::IRInstr, PGOOptions::NoCSAction, PGOOptions::IRInstr, PGOOptions::NoCSAction,
@ -675,6 +676,7 @@ LLVMRustOptimize(
assert(!PGOSampleUsePath); assert(!PGOSampleUsePath);
PGOOpt = PGOOptions(PGOUsePath, "", "", PGOOpt = PGOOptions(PGOUsePath, "", "",
#if LLVM_VERSION_GE(17, 0) #if LLVM_VERSION_GE(17, 0)
"",
FS, FS,
#endif #endif
PGOOptions::IRUse, PGOOptions::NoCSAction, PGOOptions::IRUse, PGOOptions::NoCSAction,
@ -682,6 +684,7 @@ LLVMRustOptimize(
} else if (PGOSampleUsePath) { } else if (PGOSampleUsePath) {
PGOOpt = PGOOptions(PGOSampleUsePath, "", "", PGOOpt = PGOOptions(PGOSampleUsePath, "", "",
#if LLVM_VERSION_GE(17, 0) #if LLVM_VERSION_GE(17, 0)
"",
FS, FS,
#endif #endif
PGOOptions::SampleUse, PGOOptions::NoCSAction, PGOOptions::SampleUse, PGOOptions::NoCSAction,
@ -689,6 +692,7 @@ LLVMRustOptimize(
} else if (DebugInfoForProfiling) { } else if (DebugInfoForProfiling) {
PGOOpt = PGOOptions("", "", "", PGOOpt = PGOOptions("", "", "",
#if LLVM_VERSION_GE(17, 0) #if LLVM_VERSION_GE(17, 0)
"",
FS, FS,
#endif #endif
PGOOptions::NoAction, PGOOptions::NoCSAction, PGOOptions::NoAction, PGOOptions::NoCSAction,