[llvm] 70a3a1b - [ORC] Fix the prototype of a C API function. (#139259)

via llvm-commits llvm-commits at lists.llvm.org
Tue May 13 14:10:49 PDT 2025


Author: Tim Besard
Date: 2025-05-14T07:10:46+10:00
New Revision: 70a3a1b8e5907c42f30980d61a73e15318ae1ae8

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

LOG: [ORC] Fix the prototype of a C API function. (#139259)

In 38d16f509a3faff3c545da5bfd5a8bcbd234ff24, the `TargetTriple` argument
was removed from the `LLVMOrcCreateStaticLibrarySearchGeneratorForPath`
without updating the C API headers. This resulted in the function being
exported without C linkage, making it impossible to use from C.

Co-authored-by: Lang Hames <lhames at gmail.com>

Added: 
    

Modified: 
    llvm/include/llvm-c/Orc.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm-c/Orc.h b/llvm/include/llvm-c/Orc.h
index 8609a8a6d9e9d..743ba1d581782 100644
--- a/llvm/include/llvm-c/Orc.h
+++ b/llvm/include/llvm-c/Orc.h
@@ -1059,7 +1059,7 @@ LLVMErrorRef LLVMOrcCreateDynamicLibrarySearchGeneratorForPath(
  */
 LLVMErrorRef LLVMOrcCreateStaticLibrarySearchGeneratorForPath(
     LLVMOrcDefinitionGeneratorRef *Result, LLVMOrcObjectLayerRef ObjLayer,
-    const char *FileName, const char *TargetTriple);
+    const char *FileName);
 
 /**
  * Create a ThreadSafeContext containing a new LLVMContext.


        


More information about the llvm-commits mailing list