diff --git a/llvm/include/llvm/InitializePasses.h b/llvm/include/llvm/InitializePasses.h index 898265759a688f..64644f5135394c 100644 --- a/llvm/include/llvm/InitializePasses.h +++ b/llvm/include/llvm/InitializePasses.h @@ -292,7 +292,6 @@ void initializeStackSafetyInfoWrapperPassPass(PassRegistry &); void initializeStackSlotColoringPass(PassRegistry&); void initializeStraightLineStrengthReduceLegacyPassPass(PassRegistry &); void initializeStripDebugMachineModulePass(PassRegistry &); -void initializeStripGCRelocatesLegacyPass(PassRegistry &); void initializeStructurizeCFGLegacyPassPass(PassRegistry &); void initializeTailCallElimPass(PassRegistry&); void initializeTailDuplicatePass(PassRegistry&); diff --git a/llvm/lib/Transforms/Utils/StripGCRelocates.cpp b/llvm/lib/Transforms/Utils/StripGCRelocates.cpp index 0ff88e8b4612ad..6094f36a77f45c 100644 --- a/llvm/lib/Transforms/Utils/StripGCRelocates.cpp +++ b/llvm/lib/Transforms/Utils/StripGCRelocates.cpp @@ -18,8 +18,6 @@ #include "llvm/IR/InstIterator.h" #include "llvm/IR/Instructions.h" #include "llvm/IR/Statepoint.h" -#include "llvm/InitializePasses.h" -#include "llvm/Pass.h" using namespace llvm; @@ -66,21 +64,3 @@ PreservedAnalyses StripGCRelocates::run(Function &F, PA.preserveSet(); return PA; } - -namespace { -struct StripGCRelocatesLegacy : public FunctionPass { - static char ID; // Pass identification, replacement for typeid - StripGCRelocatesLegacy() : FunctionPass(ID) { - initializeStripGCRelocatesLegacyPass(*PassRegistry::getPassRegistry()); - } - - void getAnalysisUsage(AnalysisUsage &Info) const override {} - - bool runOnFunction(Function &F) override { return ::stripGCRelocates(F); } -}; -char StripGCRelocatesLegacy::ID = 0; -} // namespace - -INITIALIZE_PASS(StripGCRelocatesLegacy, "strip-gc-relocates", - "Strip gc.relocates inserted through RewriteStatepointsForGC", - true, false) diff --git a/llvm/lib/Transforms/Utils/Utils.cpp b/llvm/lib/Transforms/Utils/Utils.cpp index 2d54d90d99e080..51e1e824dd26c2 100644 --- a/llvm/lib/Transforms/Utils/Utils.cpp +++ b/llvm/lib/Transforms/Utils/Utils.cpp @@ -29,7 +29,6 @@ void llvm::initializeTransformUtils(PassRegistry &Registry) { initializeLowerInvokeLegacyPassPass(Registry); initializeLowerSwitchLegacyPassPass(Registry); initializePromoteLegacyPassPass(Registry); - initializeStripGCRelocatesLegacyPass(Registry); initializeFixIrreduciblePass(Registry); initializeUnifyLoopExitsLegacyPassPass(Registry); }