[llvm] da18ceb - [llvm-c][ORC] Fix LLVMOrcObjectLayerAddObjectFileWithRT.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 27 16:08:34 PDT 2023


Author: Jakob Leifhelm
Date: 2023-03-27T16:08:28-07:00
New Revision: da18ceb4b1d54829f73ae4373b59f6ed30314115

URL: https://github.com/llvm/llvm-project/commit/da18ceb4b1d54829f73ae4373b59f6ed30314115
DIFF: https://github.com/llvm/llvm-project/commit/da18ceb4b1d54829f73ae4373b59f6ed30314115.diff

LOG: [llvm-c][ORC] Fix LLVMOrcObjectLayerAddObjectFileWithRT.

The LLVMOrcObjectLayerAddObjectFileWithRT method does not have an
implementation. LLVMOrcLLJITAddObjectFileWithRT exists twice (maybe a copy
paste error).

Reviewed By: lhames

Differential Revision: https://reviews.llvm.org/D118447

Added: 
    

Modified: 
    llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp b/llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp
index 945e9ced79412..98b784b0de989 100644
--- a/llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp
@@ -847,9 +847,9 @@ LLVMErrorRef LLVMOrcObjectLayerAddObjectFile(LLVMOrcObjectLayerRef ObjLayer,
       *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))));


        


More information about the llvm-commits mailing list