[PATCH] D152783: [ExecutionEngine] Remove unused function cloneGlobalAliasDecl
Kazu Hirata via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 13 00:58:32 PDT 2023
kazu created this revision.
Herald added subscribers: jeroen.dobbelaere, hiraditya.
Herald added a project: All.
kazu requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
The last use was removed by:
commit 6154c4115cd4b78d0171892aac21e340e72e32bd
Author: Lang Hames <lhames at gmail.com>
Date: Mon Sep 7 21:21:28 2020 -0700
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D152783
Files:
llvm/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h
llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp
Index: llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp
===================================================================
--- llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp
+++ llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp
@@ -337,17 +337,6 @@
return NewGV;
}
-GlobalAlias* cloneGlobalAliasDecl(Module &Dst, const GlobalAlias &OrigA,
- ValueToValueMapTy &VMap) {
- assert(OrigA.getAliasee() && "Original alias doesn't have an aliasee?");
- auto *NewA = GlobalAlias::create(OrigA.getValueType(),
- OrigA.getType()->getPointerAddressSpace(),
- OrigA.getLinkage(), OrigA.getName(), &Dst);
- NewA->copyAttributesFrom(&OrigA);
- VMap[&OrigA] = NewA;
- return NewA;
-}
-
Error addFunctionPointerRelocationsToCurrentSymbol(jitlink::Symbol &Sym,
jitlink::LinkGraph &G,
MCDisassembler &Disassembler,
Index: llvm/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h
===================================================================
--- llvm/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h
+++ llvm/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h
@@ -529,10 +529,6 @@
GlobalVariable *cloneGlobalVariableDecl(Module &Dst, const GlobalVariable &GV,
ValueToValueMapTy *VMap = nullptr);
-/// Clone a global alias declaration into a new module.
-GlobalAlias *cloneGlobalAliasDecl(Module &Dst, const GlobalAlias &OrigA,
- ValueToValueMapTy &VMap);
-
/// Introduce relocations to \p Sym in its own definition if there are any
/// pointers formed via PC-relative address that do not already have a
/// relocation.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152783.530803.patch
Type: text/x-patch
Size: 1811 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230613/fe62521e/attachment.bin>
More information about the llvm-commits
mailing list