[llvm] ae0987d - [Transforms] Remove unused function createAddDiscriminatorsPass
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 10 13:51:47 PDT 2023
Author: Kazu Hirata
Date: 2023-06-10T13:51:35-07:00
New Revision: ae0987d242e266847f21f5fa1bffa97ce3eff586
URL: https://github.com/llvm/llvm-project/commit/ae0987d242e266847f21f5fa1bffa97ce3eff586
DIFF: https://github.com/llvm/llvm-project/commit/ae0987d242e266847f21f5fa1bffa97ce3eff586.diff
LOG: [Transforms] Remove unused function createAddDiscriminatorsPass
commit f7ca01333214f934c580c162afdee933e7430b6c
Author: Nikita Popov <npopov at redhat.com>
Date: Tue Feb 28 16:38:45 2023 +0100
Added:
Modified:
llvm/include/llvm/Transforms/Utils.h
llvm/lib/Transforms/Utils/AddDiscriminators.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/Transforms/Utils.h b/llvm/include/llvm/Transforms/Utils.h
index c89d51068be28..0fa6de3f67130 100644
--- a/llvm/include/llvm/Transforms/Utils.h
+++ b/llvm/include/llvm/Transforms/Utils.h
@@ -58,11 +58,6 @@ extern char &BreakCriticalEdgesID;
Pass *createLCSSAPass();
extern char &LCSSAID;
-//===----------------------------------------------------------------------===//
-//
-// AddDiscriminators - Add DWARF path discriminators to the IR.
-FunctionPass *createAddDiscriminatorsPass();
-
//===----------------------------------------------------------------------===//
//
// PromoteMemoryToRegister - This pass is used to promote memory references to
diff --git a/llvm/lib/Transforms/Utils/AddDiscriminators.cpp b/llvm/lib/Transforms/Utils/AddDiscriminators.cpp
index 56acdcc0bc3c8..9a4deade0b8fc 100644
--- a/llvm/lib/Transforms/Utils/AddDiscriminators.cpp
+++ b/llvm/lib/Transforms/Utils/AddDiscriminators.cpp
@@ -107,11 +107,6 @@ INITIALIZE_PASS_BEGIN(AddDiscriminatorsLegacyPass, "add-discriminators",
INITIALIZE_PASS_END(AddDiscriminatorsLegacyPass, "add-discriminators",
"Add DWARF path discriminators", false, false)
-// Create the legacy AddDiscriminatorsPass.
-FunctionPass *llvm::createAddDiscriminatorsPass() {
- return new AddDiscriminatorsLegacyPass();
-}
-
static bool shouldHaveDiscriminator(const Instruction *I) {
return !isa<IntrinsicInst>(I) || isa<MemIntrinsic>(I);
}
More information about the llvm-commits
mailing list