[PATCH] D118447: [llvm] Fix ORCv2 C Binding
Jakob Leifhelm via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 28 02:18:23 PST 2022
leifhelm created this revision.
leifhelm added reviewers: lhames, lattner.
Herald added a subscriber: hiraditya.
leifhelm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
The LLVMOrcObjectLayerAddObjectFileWithRT method does not have an implementation. LLVMOrcLLJITAddObjectFileWithRT exists twice (maybe a copy paste error).
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D118447
Files:
llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp
Index: llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp
===================================================================
--- llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp
+++ llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp
@@ -765,9 +765,10 @@
*unwrap(JD), std::unique_ptr<MemoryBuffer>(unwrap(ObjBuffer))));
}
-LLVMErrorRef LLVMOrcLLJITAddObjectFileWithRT(LLVMOrcObjectLayerRef ObjLayer,
- LLVMOrcResourceTrackerRef RT,
- LLVMMemoryBufferRef ObjBuffer) {
+LLVMErrorRef
+LLVMOrcObjectLayerAddObjectFileWithRT(LLVMOrcObjectLayerRef ObjLayer,
+ LLVMOrcResourceTrackerRef RT,
+ LLVMMemoryBufferRef ObjBuffer) {
return wrap(
unwrap(ObjLayer)->add(ResourceTrackerSP(unwrap(RT)),
std::unique_ptr<MemoryBuffer>(unwrap(ObjBuffer))));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118447.403936.patch
Type: text/x-patch
Size: 941 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220128/323b19f3/attachment.bin>
More information about the llvm-commits
mailing list