Skip to content

Commit cff6d12

Browse files
committed
[Bye] Remove legacy pipeline registration
D137915 has somehow caused a flang bot to fail: https://lab.llvm.org/buildbot/#/builders/191/builds/11279. Given that the issue is with the legacy pipeline registration code and the legacy pipeline registration infrastructure is to be removed soon, remove this part of Bye.
1 parent d083dc6 commit cff6d12

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

llvm/examples/Bye/Bye.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#include "llvm/Passes/PassPlugin.h"
66
#include "llvm/Support/CommandLine.h"
77
#include "llvm/Support/raw_ostream.h"
8-
#include "llvm/Transforms/IPO/PassManagerBuilder.h"
98

109
using namespace llvm;
1110

@@ -44,17 +43,6 @@ static RegisterPass<LegacyBye> X("goodbye", "Good Bye World Pass",
4443
false /* Only looks at CFG */,
4544
false /* Analysis Pass */);
4645

47-
/* Legacy PM Registration */
48-
static llvm::RegisterStandardPasses RegisterBye(
49-
llvm::PassManagerBuilder::EP_VectorizerStart,
50-
[](const llvm::PassManagerBuilder &Builder,
51-
llvm::legacy::PassManagerBase &PM) { PM.add(new LegacyBye()); });
52-
53-
static llvm::RegisterStandardPasses RegisterByeLTO(
54-
llvm::PassManagerBuilder::EP_ModuleOptimizerEarly,
55-
[](const llvm::PassManagerBuilder &Builder,
56-
llvm::legacy::PassManagerBase &PM) { PM.add(new LegacyBye()); });
57-
5846
/* New PM Registration */
5947
llvm::PassPluginLibraryInfo getByePluginInfo() {
6048
return {LLVM_PLUGIN_API_VERSION, "Bye", LLVM_VERSION_STRING,

0 commit comments

Comments
 (0)