Skip to content

Commit

Permalink
gen/optimizer.cpp: gate LLVM 19.1 functions behind ...
Browse files Browse the repository at this point in the history
... LDC_LLVM_VER >= 1900 instead of 1901
  • Loading branch information
liushuyu committed Nov 7, 2024
1 parent 45946dd commit 90c43e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gen/optimizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ static llvm::Optional<PGOOptions> getPGOOptions() {
"" /*MemoryProfileUsePath*/, llvm::vfs::getRealFileSystem(),
#endif
PGOOptions::PGOAction::IRInstr, PGOOptions::CSPGOAction::NoCSAction,
#if LDC_LLVM_VER >= 1901
#if LDC_LLVM_VER >= 1900
PGOOptions::ColdFuncOpt::Default,
#endif
debugInfoForProfiling, pseudoProbeForProfiling);
Expand All @@ -319,7 +319,7 @@ static llvm::Optional<PGOOptions> getPGOOptions() {
"" /*MemoryProfileUsePath*/, llvm::vfs::getRealFileSystem(),
#endif
PGOOptions::PGOAction::IRUse, PGOOptions::CSPGOAction::NoCSAction,
#if LDC_LLVM_VER >= 1901
#if LDC_LLVM_VER >= 1900
PGOOptions::ColdFuncOpt::Default,
#endif
debugInfoForProfiling, pseudoProbeForProfiling);
Expand All @@ -330,7 +330,7 @@ static llvm::Optional<PGOOptions> getPGOOptions() {
"" /*MemoryProfileUsePath*/, llvm::vfs::getRealFileSystem(),
#endif
PGOOptions::PGOAction::SampleUse, PGOOptions::CSPGOAction::NoCSAction,
#if LDC_LLVM_VER >= 1901
#if LDC_LLVM_VER >= 1900
PGOOptions::ColdFuncOpt::Default,
#endif
debugInfoForProfiling, pseudoProbeForProfiling);
Expand Down

0 comments on commit 90c43e0

Please sign in to comment.