summaryrefslogtreecommitdiff
path: root/include/llvm-c/Linker.h
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2015-02-25 18:25:34 +0000
committerDimitry Andric <dim@FreeBSD.org>2015-02-25 18:25:34 +0000
commitb6bcb9a905dec7821221e8ceaf1504c1f329815e (patch)
tree04d79cf27b19565c7fe5e8a5f476f91e6cde20e0 /include/llvm-c/Linker.h
parent8af9f2019d565de6161a3ce884a16942fe2dde29 (diff)
Notes
Diffstat (limited to 'include/llvm-c/Linker.h')
-rw-r--r--include/llvm-c/Linker.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/llvm-c/Linker.h b/include/llvm-c/Linker.h
index cedde5ea8e3a..a932c6d0f078 100644
--- a/include/llvm-c/Linker.h
+++ b/include/llvm-c/Linker.h
@@ -20,13 +20,21 @@
extern "C" {
#endif
+
+/* Note: LLVMLinkerPreserveSource has no effect. */
+typedef enum {
+ LLVMLinkerDestroySource = 0, /* Allow source module to be destroyed. */
+ LLVMLinkerPreserveSource = 1 /* Preserve the source module. */
+} LLVMLinkerMode;
+
+
/* Links the source module into the destination module, taking ownership
* of the source module away from the caller. Optionally returns a
* human-readable description of any errors that occurred in linking.
* OutMessage must be disposed with LLVMDisposeMessage. The return value
* is true if an error occurred, false otherwise. */
LLVMBool LLVMLinkModules(LLVMModuleRef Dest, LLVMModuleRef Src,
- unsigned Unused, char **OutMessage);
+ LLVMLinkerMode Mode, char **OutMessage);
#ifdef __cplusplus
}