Skip to content

Commit 70a3a1b

Browse files
maleadtlhames
andauthored
[ORC] Fix the prototype of a C API function. (#139259)
In 38d16f5, 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 <[email protected]>
1 parent 989a40c commit 70a3a1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm-c/Orc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ LLVMErrorRef LLVMOrcCreateDynamicLibrarySearchGeneratorForPath(
10591059
*/
10601060
LLVMErrorRef LLVMOrcCreateStaticLibrarySearchGeneratorForPath(
10611061
LLVMOrcDefinitionGeneratorRef *Result, LLVMOrcObjectLayerRef ObjLayer,
1062-
const char *FileName, const char *TargetTriple);
1062+
const char *FileName);
10631063

10641064
/**
10651065
* Create a ThreadSafeContext containing a new LLVMContext.

0 commit comments

Comments
 (0)