[PATCH] D152784: [ExecutionEngine] Remove unused function createIRTypedAddress
Kazu Hirata via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 13 01:02:17 PDT 2023
kazu created this revision.
Herald added a subscriber: 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 2abf6bdfc20968ad46aaa489c55873fe7fe77c84
Author: Lang Hames <lhames at gmail.com>
Date: Fri May 27 22:17:56 2016 +0000
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D152784
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
@@ -240,15 +240,6 @@
}
}
-Constant* createIRTypedAddress(FunctionType &FT, ExecutorAddr Addr) {
- Constant *AddrIntVal =
- ConstantInt::get(Type::getInt64Ty(FT.getContext()), Addr.getValue());
- Constant *AddrPtrVal =
- ConstantExpr::getCast(Instruction::IntToPtr, AddrIntVal,
- PointerType::get(&FT, 0));
- return AddrPtrVal;
-}
-
GlobalVariable* createImplPointer(PointerType &PT, Module &M,
const Twine &Name, Constant *Initializer) {
auto IP = new GlobalVariable(M, &PT, false, GlobalValue::ExternalLinkage,
Index: llvm/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h
===================================================================
--- llvm/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h
+++ llvm/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h
@@ -481,13 +481,6 @@
std::function<std::unique_ptr<IndirectStubsManager>()>
createLocalIndirectStubsManagerBuilder(const Triple &T);
-/// Build a function pointer of FunctionType with the given constant
-/// address.
-///
-/// Usage example: Turn a trampoline address into a function pointer constant
-/// for use in a stub.
-Constant *createIRTypedAddress(FunctionType &FT, ExecutorAddr Addr);
-
/// Create a function pointer with the given type, name, and initializer
/// in the given Module.
GlobalVariable *createImplPointer(PointerType &PT, Module &M, const Twine &Name,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152784.530805.patch
Type: text/x-patch
Size: 1677 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230613/645862c2/attachment.bin>
More information about the llvm-commits
mailing list