aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Utils.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2023-02-28 16:38:45 +0100
committerNikita Popov <npopov@redhat.com>2023-03-02 09:53:50 +0100
commitf7ca01333214f934c580c162afdee933e7430b6c (patch)
tree634bbd953faeb5ac59a8ba11499fd4a664debe6a /llvm/lib/Transforms/Utils/Utils.cpp
parent5705dc7606556f9f4ee48835e228cb5330692d6c (diff)
downloadllvm-f7ca01333214f934c580c162afdee933e7430b6c.zip
llvm-f7ca01333214f934c580c162afdee933e7430b6c.tar.gz
llvm-f7ca01333214f934c580c162afdee933e7430b6c.tar.bz2
[llvm-c] Remove bindings for creating legacy passes
Legacy passes are only supported for codegen, and I don't believe it's possible to write backends using the C API, so we should drop all of those. Reduces the number of places that need to be modified when removing legacy passes. Differential Revision: https://reviews.llvm.org/D144970
Diffstat (limited to 'llvm/lib/Transforms/Utils/Utils.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/Utils.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/Transforms/Utils/Utils.cpp b/llvm/lib/Transforms/Utils/Utils.cpp
index a20dadb..d86f20c 100644
--- a/llvm/lib/Transforms/Utils/Utils.cpp
+++ b/llvm/lib/Transforms/Utils/Utils.cpp
@@ -13,7 +13,6 @@
#include "llvm/Transforms/Utils.h"
#include "llvm-c/Initialization.h"
-#include "llvm-c/Transforms/Utils.h"
#include "llvm/IR/LegacyPassManager.h"
#include "llvm/InitializePasses.h"
#include "llvm/Pass.h"
@@ -50,15 +49,3 @@ void llvm::initializeTransformUtils(PassRegistry &Registry) {
void LLVMInitializeTransformUtils(LLVMPassRegistryRef R) {
initializeTransformUtils(*unwrap(R));
}
-
-void LLVMAddLowerSwitchPass(LLVMPassManagerRef PM) {
- unwrap(PM)->add(createLowerSwitchPass());
-}
-
-void LLVMAddPromoteMemoryToRegisterPass(LLVMPassManagerRef PM) {
- unwrap(PM)->add(createPromoteMemoryToRegisterPass());
-}
-
-void LLVMAddAddDiscriminatorsPass(LLVMPassManagerRef PM) {
- unwrap(PM)->add(createAddDiscriminatorsPass());
-}