aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/CloneFunction.cpp
diff options
context:
space:
mode:
authorArtem Pianykh <artem.pyanykh@gmail.com>2025-03-15 16:47:49 +0000
committerGitHub <noreply@github.com>2025-03-15 16:47:49 +0000
commitfc17114ac00d55b0e381d4e70e6f0bc2d0c5cc43 (patch)
tree2a17a899a9e7ae6b29aca05adebd8cc9374b5351 /llvm/lib/Transforms/Utils/CloneFunction.cpp
parent5bc8db884e3a8b9375196fce3add5b50f21cfda4 (diff)
downloadllvm-fc17114ac00d55b0e381d4e70e6f0bc2d0c5cc43.zip
llvm-fc17114ac00d55b0e381d4e70e6f0bc2d0c5cc43.tar.gz
llvm-fc17114ac00d55b0e381d4e70e6f0bc2d0c5cc43.tar.bz2
[NFC][Cloning] Remove now unused CollectDebugInfoForCloning (#129152)
Summary: This function is no longer used, let's remove it from the header and impl. Test Plan: ninja check-llvm-unit
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneFunction.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/CloneFunction.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneFunction.cpp b/llvm/lib/Transforms/Utils/CloneFunction.cpp
index 249bef4..3ccb532 100644
--- a/llvm/lib/Transforms/Utils/CloneFunction.cpp
+++ b/llvm/lib/Transforms/Utils/CloneFunction.cpp
@@ -168,27 +168,6 @@ void llvm::CloneFunctionAttributesInto(Function *NewFunc,
OldAttrs.getRetAttrs(), NewArgAttrs));
}
-DISubprogram *llvm::CollectDebugInfoForCloning(const Function &F,
- CloneFunctionChangeType Changes,
- DebugInfoFinder &DIFinder) {
- // CloneModule takes care of cloning debug info for ClonedModule. Cloning into
- // DifferentModule is taken care of separately in ClonedFunctionInto as part
- // of llvm.dbg.cu update.
- if (Changes >= CloneFunctionChangeType::DifferentModule)
- return nullptr;
-
- DISubprogram *SPClonedWithinModule = nullptr;
- if (Changes < CloneFunctionChangeType::DifferentModule) {
- SPClonedWithinModule = F.getSubprogram();
- }
- if (SPClonedWithinModule)
- DIFinder.processSubprogram(SPClonedWithinModule);
-
- collectDebugInfoFromInstructions(F, DIFinder);
-
- return SPClonedWithinModule;
-}
-
void llvm::CloneFunctionMetadataInto(Function &NewFunc, const Function &OldFunc,
ValueToValueMapTy &VMap,
RemapFlags RemapFlag,