Skip to content

Commit

Permalink
[fix testPluginLegacy lit-test regression with LLVM 14]
Browse files Browse the repository at this point in the history
  • Loading branch information
kinke committed Jul 10, 2023
1 parent 823b920 commit 340d7cf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/plugins/addFuncEntryCall/addFuncEntryCallPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ bool FuncEntryCallPass::runOnFunction(Function &F) {
}


#if LLVM_VERSION < 1400 // legacy pass manager
#if LLVM_VERSION < 1500 // legacy pass manager

static void addFuncEntryCallPass(const PassManagerBuilder &,
legacy::PassManagerBase &PM) {
Expand All @@ -70,9 +70,10 @@ static RegisterStandardPasses
RegisterFuncEntryCallPass0(PassManagerBuilder::EP_EnabledOnOptLevel0,
addFuncEntryCallPass);

#else // LLVM 14+
#endif


// Implementation of plugin for the new passmanager
#if LLVM_VERSION >= 1400 // new pass manager

#include "llvm/IR/PassManager.h"
#include "llvm/Passes/PassBuilder.h"
Expand Down

0 comments on commit 340d7cf

Please sign in to comment.